The Wayback Machine - https://web.archive.org/web/20240617124132/https://www.geeksforgeeks.org/optimal-decision-making-in-multiplayer-games/
Open In App

Optimal Decision Making in Multiplayer Games

Last Updated : 21 Feb, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

The optimal solution becomes a contingent strategy when specifies MAX(the player on our side)’s move in the initial state, then Max move to the states resulting for every possible response by MIN. Then MAX’s moves in the states resulting from every possible response by MIN to those moves, and so on.

From the current state, the minimax method in the Figure above computes the minimax choice. It implements the defining equations directly using a simple recursive computation of the minimax values of each successor state. As the recursion unwinds, it progresses all the way down to the tree’s leaves, where the minimax values are then backed up through the tree. In the figure below, for example, the algorithm recurses down to the three bottom-left nodes and uses the UTILITY function to determine that their values are 3, 12, and 8, respectively. Then it takes the smallest of these values, 3 in this case, and returns it as node B’s backed-up value. The backed-up values of 2 for C and 2 for D are obtained using a similar approach. Finally, we add the maximum of 3, 2, and 2 to get the root node’s backed-up value of 3.

The minimax algorithm explores the game tree from top to bottom in depth-first. The temporal complexity of the minimax method is O if the maximum depth of the tree is m and there are b legal moves at each point (bm). For an algorithm that creates all actions at once, the space complexity is O(bm), while for an algorithm that generates actions one at a time, the space complexity is O(m)  The time cost is obviously impractical for real games, but this technique serves as a foundation for game mathematics analysis and more practical algorithms.

Many popular games support multiple players. Let’s look at how to apply the minimax concept to multiplayer games. From a technological standpoint, this is basic, but it introduces some intriguing new philosophical challenges. To begin, we must replace each node’s single value with a vector of values. Each node in a three-player game with players A, B, and C, for example, is associated with a vector <vA, vB, vC>. This vector represents the utility of a terminal condition from the perspective of each actor. The two-element vector can be reduced to a single value in two-player, zero-sum games because the values are always opposite. The UTILITY function returns a vector of utilities, which is the easiest method to accomplish this.

Nonterminal states must now be considered. In the game tree shown in the figure below, consider the node labeled X. Player C decides what to do in that situation. Both options result in terminal states with utility vectors of vA = 1, vB = 2, vC = 6 and vA = 4, vB = 2, vC = 3 respectively. C should make the first move since 6 is more than 3. If state X is reached, further play will result in a terminal state with utilities vA = 1, vB = 2, and vC = 6. As a result, this vector is the backed-up value of X. 

The utility vector of the successor state with the highest value for the player choosing at n is always the backed-up value of a node n. Anyone who plays multiplayer games like Diplomacy quickly realizes that there is a lot more going on than there is in two-player games. Multiplayer games sometimes include individuals forming formal or informal alliances. As the game progresses, alliances are formed and destroyed. The question that comes to our mind is how can one make understand this kind of behavior. Are alliances a natural result of each player’s optimal strategy in a multiplayer game? They can be, as it turns out. Consider the following scenario: A and B are in weak situations, whereas C is in a stronger position. Then, rather than attacking each other, it is generally preferable for both A and B to attack C. Otherwise, C will destroy each of them individually. Collaboration evolves from solely selfish behavior in this way. Of course, the partnership loses its significance as soon as C is weakened by the joint assault, and either A or B could break the arrangement. Explicit partnerships, in certain circumstances, only concretize what would have transpired anyhow. In other circumstances, breaking an alliance carries a social stigma, thus players must weigh the immediate benefit of breaking an alliance against the long-term cost of being viewed as untrustworthy. 

Collaboration can happen with just two participants if the game isn’t zero-sum. Assume there is a terminal state with utilities vA = 1000 and vB = 1000, with 1000 being the highest attainable utility for each participant. The best approach is for both players to do everything they can to get to this point—that is, the players will naturally cooperate to attain a mutually beneficial goal.


Similar Reads

Optimal Decision Making in Games
Humans' intellectual capacities have been engaged by games for as long as civilization has existed, sometimes to an alarming degree. Games are an intriguing subject for AI researchers because of their abstract character. A game's state is simple to depict, and actors are usually limited to a small number of actions with predetermined results. Physi
7 min read
How to Extract the Decision Rules from scikit-learn Decision-tree?
You might have already learned how to build a Decision-Tree Classifier, but might be wondering how the scikit-learn actually does that. So, in this article, we will cover this in a step-by-step manner. You can run the code in sequence, for better understanding. Decision-Tree uses tree-splitting criteria for splitting the nodes into sub-nodes until
4 min read
Weighted Product Method - Multi Criteria Decision Making
Weighted Product Method is a multi-criterion decision-making method in which there will be multiple alternatives and we have to determine the best alternative based on multiple criteria. There are other methods available including the Weighted Sum Method (WSM), Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS), VIKOR, MOORA
4 min read
Importance of decision making
When we talk about decision making, so you actually don't realize that you are making decisions every day in your day to day life. Right from waking up and leaving at the back of the comfortable mattress in the morning till we retire for the day, the selections we make are what hold us thriving. It is estimated that a common human makes around 35,
4 min read
Improving Business Decision-Making using Time Series
Time series analysis is mainly used to explain, describe, and predict changes via the time of chosen variables. Many companies use time series forecasting, and analysis to develop business strategies. These techniques help businesses in measuring, tracking, defining, and predicting business trends. Time series analysis provides you with an opportun
6 min read
What is Data-Driven Decision Making?
An increasing number of businesses are adopting data-driven decision-making (DDDM) strategies in today's data-rich corporate environment. The term "DDDM" describes the process of making decisions not just from experience or intuition but also from a quantitative examination of pertinent data. DDDM is predicated on the idea that patterns, correlatio
9 min read
ML | Determine the optimal value of K in K-Means Clustering
Prerequisite: K-Means Clustering | IntroductionThere is a popular method known as elbow method which is used to determine the optimal value of K to perform the K-Means Clustering Algorithm. The basic idea behind this method is that it plots the various values of cost with changing k. As the value of K increases, there will be fewer elements in the
2 min read
Silhouette Algorithm to determine the optimal value of k
One of the fundamental steps of an unsupervised learning algorithm is to determine the number of clusters into which the data may be divided. The silhouette algorithm is one of the many algorithms to determine the optimal number of clusters for an unsupervised learning technique. In the Silhouette algorithm, we assume that the data has already been
3 min read
Elbow Method for optimal value of k in KMeans
Prerequisites: K-Means Clustering In this article, we will discuss how to select the best k (Number of clusters) in the k-Means clustering algorithm. Introduction To Elbow Method A fundamental step for any unsupervised algorithm is to determine the optimal number of clusters into which the data may be clustered. Since we do not have any predefined
5 min read
How to Find The Optimal Value of K in KNN
KNN or k nearest neighbor is a non-parametric, supervised learning classifier, that can be used for both classification and regression tasks, which uses proximity as a feature for classification or prediction. It is a classic example of a lazy learner algorithm because it does not learn from the training set immediately instead it stores the datase
11 min read