3
$\begingroup$

When you play video games, sometimes there is an AI that attempts to predict what are you going to do.

For example, in the Candy Crush game, if you finish the level and you still have moves remaining, you get to see fishes or other powers destroying the other candies, but, instead of watching 10 minutes of your combos without moving at all after accomplishing a level, like this Longest video game combo ever probably, it tells an alert that says tap to skip, so basically the AI is predicting all the possible combos that will keep proceeding automatically and calculating every automatic move.

How can artificial intelligence predict such a thing?

$\endgroup$
2
  • $\begingroup$ Welcome to SE:AI! (Apologies that the answers are so generic. My personal sense, in relation to this particular problem--producing the set of Candy Crush combos, is likely a combinatorial approach. In terms of prediction, my guess would be you train a reinforcement algorithm to identify the biases of the algorithm that is producing the combos in the game, and exploit the identification of those biases to more and more accurately predict the most likely next combo.) $\endgroup$
    – DukeZhou
    Apr 23, 2020 at 22:03
  • $\begingroup$ However, if you're pressing "skip", and the AI is "predicting your next moves", that is likely a misrepresentation, unless your gameplay specifically has been observed and modeled sufficiently by a reinforcement learning algorithm. This is unlikely due to the computational cost (time, space, energy) of training such algorithms. $\endgroup$
    – DukeZhou
    Apr 23, 2020 at 23:11

4 Answers 4

1
$\begingroup$

AI is trained to predict such thing because that is their purpose, they are given almost all possibilities of move they can do to current state of the game and chose the best possible outcome of the possible move, but not only that the AI also predict what happens after that and predict the outcome of that prediction, just like a chess AI that can predict how to checkmate a player just by one move made by the player, so they did not just predict what move to do now but also what move to do after that move has been done

this can be done with deep learning as you can read here : https://towardsdatascience.com/predicting-professional-players-chess-moves-with-deep-learning-9de6e305109e https://electronics.howstuffworks.com/chess1.htm

$\endgroup$
1
$\begingroup$

In video games, usually the developer spend an dedicated time to train their AI by feeding them with learning data, provided by either the developer itself or the feedback from open/closed beta tester that participated, and from that data, the developer can model the learning pattern for the algorithm and proceed to train them with some sets of goal.

$\endgroup$
1
$\begingroup$

Artificial Intelligence can predict such a thing because before they release the game, the train the BOT or AI to play the game million times so they have a model or BOT that can predict every next move or combo that they can do or predict all moves that can finish the game. for example snake game. what they do to predict moves is train the model or bot to play the game when the snake perform some action . the snake got reward which can be positive or negative reward. the goal of the snake is to learn what action that maximize the reward, given every possible state. States are the observations that the agent receives at each iteration from the environment

this is the link that can give you the detail : https://towardsdatascience.com/how-to-teach-an-ai-to-play-games-deep-reinforcement-learning-28f9b920440a

$\endgroup$
0
$\begingroup$

AI can predict such thing by reading a data that they previously store by play the game many times. Using the data the AI can learn which is the best action to do. For example AI can find the best path to evade all incoming bullet while shooting down all the enemies in bullet hell game.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .