+44 203 318 3300 +61 2 7908 3995 help@nativeassignmenthelp.co.uk

Pages: 10

Words: 2543

The Resistance Card Game: Player Implementation and Analysis

Introduction: Player Implementation and Analysis

Learn more about our native assignment help and how it can benefit your academic success.

The resistance is basically a card game where it keeps some secret roles. In the game, some secret agent who is called “spies” beats the Opposition missions. In this game, the minimum player is five and then the maximum number is ten. The mission of the game is to reject each other identities and the war is basically between the resistance and a strong and dishonest government. Here this project mainly discussed the configurations and the libraries that are implemented in the game. 

Defining the class object of the player to input the player in this game which is identified by a specific index to keep the role of the resistance. The main task in this project is submitting a player to the game The Resistance using some Python code. Here can be used many techniques like decision trees, blackboards, neural networks, behavior trees, RL techniques, and many more. Here also used an existing bot and implemented it into the game. Therefore, it also includes the implementation technique of the external player and the bots and also provides the experimental study and the analyzing methods behind the player implementations.  

The Resistance

The Resistance is a remote role card game in which members of the resistance defeat the other Resistance’s missions. This game is basically played between five to ten players where players try to conclude one another's individualities (Malik et al. 2022). An imaginary fight between the resistance against a powerful and crooked government is the main theme of the game. The basic materials of the game are eleven Identity cards, five cards Escalade, and twenty Voting cards which contain some yes and no cards, ten Mission Cards, six coloured score tokens, and one progression token. At the start of the game, some of the players are chosen as spies who stay members of the resistance. The spies are made familiar with each other without knowing the exact resistance. The players never disclose their identity cards to opposing players.

Game Mode of resistance

Figure 1: Game Mode of resistance

This figure shows the gameplay setup for the resistance game and it is basically a 5 to 6-player game setup. The resistance game consists of up to five missions and each time one of the players keeps the role of the Mission leader. This player offers a mission team, which the group approves by public vote in the game time (Böhmet al. 2022).

The rules of the game are very easy to learn but the techniques are a little tricky at first the game is still for new players. The game even presents the depth of procedure because of the social interaction in the game. In the game, the Resistance is basically about capturing the other players' identities and deciding whether those players are lying or not. 

Therefore, this is a social game of lying and charges so it is not for the younger age. Basically, this game takes times between 15 and 30 minutes depending on the number of charges and suspicion. This game plays into two phases which are the squad phase and the mission phase, in the squad phase the Leader must go on a mission and also choose some players who allocate to the next mission. The size of the squad varies on the number of players and on the current turn in the game. During the mission phase, the Leader of the game gives each team member a mission successful card and a mission failed card and when there was no mission failure card then the mission is considered a complete mission (Huang et al. 2022).

Background

The “resistance has a high extent of the delay; it is very challenging to reach any standard true or false replies”. Similarly, in the game, some “actions, like nominations, voting, and charges, could occur if the player is a member of the resistance” or if they are an agent. Here implementing the external bot in the python file and this bot which included among one of the python files. Here Data structures and algorithms that have many segments and rules can be used to develop the games that are played with a computer or some specific device. Here in this project, the player takes a file handler class which is “import logging. 

Algorithms for Class Player

Figure 2: Algorithms for Class Player

Handlers” which also locates the core logging packages and shares logging output into the desk file. Also, add the “class player (object)” to define the player in the game of the resistance (Babaeiet al. 2022). Here in the time of bot building for the game there given some players to manipulate in the form of instances of this player class which is like “daniele.py, mvpstock.py, myplayer.py, soreplayers.py, and trusty.py which are all saved in the python files.

Techniques Implemented

Here the resistance game uses some epistemic logic where one has to create some “set of rules for deducing the knowledge of the game state”. Therefore, in this game, there were some technical delays and for this, it becomes more difficult to read the true and false answers. Here some “actions such as nominations, voting, and charges happen” only if there was resistance in the members of the resistance to become secret agents.

A resistance player never fails in the mission so there was no solid information from them, only a mission failure can provide the proper information about the gameplay. Resistance players use basically the epistemic logic where they did not track the decisions either good or bad. The Resistance game implicates a lot of unreliability, it can be more suitable for the game strategy to “perform with probabilities instead of true or false replies”. The “probabilities could not give any reliable information, but it can help to specify which replies are more potential to be good decisions”. 

And using this there is some useful information for the gameplay (Souza et al. 2022). Bayes’ theorem which is basically used in the game methodology is an effective and powerful tool for resistance players. This theorem “allows players to alter between different dependent probabilities”. If the “players know the probability of each phase of the game is the true game state, and if they can calculate the probability of a team failing in each of those phases, then they basically use Bayes’ theorem to resolve the general probability of a team being successful”. This theorem also allows players to compare different teams, which helps them to make conclusions about nominations or voting. 

Therefore, probabilities and Bayes’ theorem could be less useful for spy players since there was no uncertainty. Besides that, it is a very effective approach for a secret agent to act as a member of the resistance. After that, the spies maintain the probabilities for guidance for the behaviour of the resistance players. Here to map each phase to a probability value, which gives the probability of each phase “existing, P(w) where all the phases have similar probabilities, given by”:

“P(w) = 1 / number of phases”

This “probability value can be adjusted by the game actions. During playtime whenever the probability of a phase reaches 0”, that phase has become impossible, “so it can be terminated from the set of all phases” (Barroso et al. 2022). To get the all-around probability of the action appearing P(a), “need to add all the probabilities of the action happening in each phase, weighting each by the probability of its existing phase”. Whenever an action happened, there needs to update of all the phase probabilities to possess the present information. To calculate P “(w | a), the probability of each existing phase given that action and also capable to calculate this using Bayes’ theorem”: 

“P(w/a) = P(a/w) p(w) / P(a)”

If there are many spies in the game on a “mission team, then it is a good decision to fail that mission, here each and every spy needs to choose whether or not to play thefailure card. A spy can develop an arbitrary number between 0 and 1”. If the taken number is smaller than the “threshold, then the players play the failure card, Otherwise, the players play the success card”.

Experimental Study

Here in this project to implement the bot which is basically described as the “mybot” in the python files of the mentioned game.  

Experimental study

Figure 3: Experimental study

Here in this figure, the Python codes help to import the image and also import the GUI, time, mss, and os. Here is the code “from PIL. image import image” to import the image in the game and the “defpress_space” provides the keypress simulation helping by it the key has to move downward and for this “pyautogui. key down (‘space’)” code is used to implement this.

This figure shows some image selection criteria that use some image pixel values for the image selection and also add some “np. array” to turn it into an array of numbers. Here also use “nd. array” to implement the bot in the game and also adjust the brightness of the image in the game. “The print(mybot)” algorithm is used to print the bot in the game and also provide a console where the script receives the selection values. Here, some arbitrary values are also adjusted in a sensitive mode. 

This figure shows the same attribute algorithm which is “def should jump(image_mean)” which is an arbitrary value and it also describes the true and false replies. Here “restart game ()” runs one time when the developer starts the python script. The basis of the true and false statement their also an update of the screen image.

Analysis

The analysis of the structured programming is reflected in the above-mentioned scenario. The setup of gaming setup has to decorate on the bases of the structural algorithmic datasets which is made by python datasets (Xiao et al. 2022). There the bot should be specified on the bases of several software-based algorithms and the decision-making of the bot will specify by the modification of several artificial intelligence-based tools. The several arrays can be used for image-based pixel orientation for the purpose of the development of the particular gaming functionality. There are some forms of PIL files are attached in the form of importing the image-based datasets to simplify the orientation of the game. There is some simulation also occurs to access the gaming functionality efficiently. 

There are “defpress_space” that should be provided to express the impression of the moderator. The “MY BOT” is specified in the basses of the set of rules provided by the algorithm in python datasets (Roy et al. 2022). The defined algorithm should be performed in the several logical interfaces defined here. The mentioned bot here calculates the value received in the oriented console. During the acceleration of the game, there were some technical delays occurs that provide some difficulties to read the output which is generated.

Conclusion

From the above discussion, it had been seen that the preferred gaming dataset is decorated in such a way that the bot of the designed preference is declared as a gaming visualization. There are many kinds of databases and algorithms used to implement the developing interface of playing the card-based game. There is much epistemic logic that has to be created on the bases of the required output required to visualize the features of the game. This is basically a five to six-player-based setup the set of rules pre-existing the algorithm, setting the backend decision-making ability to make it in a digitalized way. There are many kinds of machine learning sets of algorithms used to set up the total configuration of the game and some artificial Intelligence based tools are also can be used to precise the decision-making facility of this particular bot.

References

Allegranzi, B., Kilpatrick, C., Sax, H. and Pittet, D., 2022. ‘My Five Moments’: understanding a user-centred approach to hand hygiene improvement within a broader implementation strategy. BMJ Quality & Safety, 31(4), pp.259-262.

BabaeiSemriomi, R. and Keyhani, A., 2022. RELIABILITY-BASED MULTI-OBJECTIVE OPTIMAL DESIGN OF SPATIAL TRUSSES USING GAME THEORY AND GA. Iran University of Science & Technology, 12(2), pp.185-199.

Barroso, L.R., 2022. POPULISM, AUTHORITARIANISM, AND INSTITUTIONAL RESISTANCE: CONSTITUTIONAL COURTS IN THE GAME OF POWER. Texas International Law Journal, Forthcoming.

Böhm, R., Holtmann?Klenner, C., Korn, L., Santana, A.P. and Betsch, C., 2022. Behavioral determinants of antibiotic resistance: The role of social information. Applied Psychology: Health and Well?Being.

Huang, V.G. and Liu, T., 2022. Gamifying contentious politics: Gaming capital and playful resistance. Games and Culture, 17(1), pp.26-46.

Malik, B., Hasan Farooqui, H. and Bhattacharyya, S., 2022. Disparity in socio-economic status explains the pattern of self-medication of antibiotics in India: understanding from game-theoretic perspective. Royal Society open science, 9(2), p.211872.

Malshe, A., Hughes, D.E., Good, V. and Friend, S.B., 2022. Marketing strategy implementation impediments and remedies: A multi-level theoretical framework within the sales-marketing interface. International Journal of Research in Marketing, 39(3), pp.824-846.

Roy, G., Fiaidhi, J. and Mohammed, S., 2022. Multi-Timeframe Algorithmic Trading Bots Using Thick Data Heuristics with Deep Reinforcement Learning. Artificial Intelligence Evolution, pp.107-159.

Souza, J.B. and O'Shea, S.C., 2022. BDSM: BODIES AND POWER GAMES. Revista de Administração de Empresas, 62(4), pp.e2021-0085.

Vasudevan, K. and Chan, N.K., 2022. Gamification and work games: Examining consent and resistance among Uber drivers. new media & society, 24(4), pp.866-886.

Xiao, S., Jhaver, S. and Salehi, N., 2022. Addressing harm in online gaming communities--the opportunities and challenges for a restorative justice approach. arXiv preprint arXiv:2211.01524.

Recently Download Samples by Customers
Our Exceptional Advantages
Complete your order here
54000+ Project Delivered
Get best price for your work

Ph.D. Writers For Best Assistance

Plagiarism Free

No AI Generated Content

offer valid for limited time only*