Update 3.0
I have redesigned the AI again to improve its strength further. Here's a quick overview of the new method:
AI players now use a search algorithm to look up to three moves ahead. For each possible sequence of up to three moves, the expected change to the number of dice of that player, including the reinforcements they would get for ending their turn after the sequence of moves, is calculated.
Then the neural network is used to estimate the number of dice that player will lose until the start of their next turn.
Taking into account the probability of success of each move (and also evaluating what happens in the failure states) an estimate of how many dice that player will have at the start of their next turn is constructed for each sequence by subtracting the estimated losses from the calculated gains. The AI player then chooses the move at the start of the sequence with the maximal estimate.
In testing, this approach significantly outperformed the AI from update 2.0.
Files
Dice Wars: Machine Learning
Play against a neural network-based AI
Status | Released |
Author | Max Lewis |
Genre | Strategy |
Tags | 2D, artificial-intelligence, Board Game, Dice, Singleplayer, Turn-based, Unity |
More posts
- Update 2.0Jun 14, 2022
- Update 1.1Jan 24, 2022
Leave a comment
Log in with itch.io to leave a comment.