Risk ASP is an implementation of the board game 🎲 Risk using the Unity Game Engine.
The AI is implemented using Answer Set Programming (ASP) and integrated using the EmbASP framework for C#.
You can download and play over https://farfi55.itch.io/riskasp, on your favourite OS (Windows, Linux, Mac)
- Unity Game Engine (tested with version 2021.3.23f1)
- Clone the repository
- Open the project in Unity
- Open the scene
Assets/Scenes/Menu.unity
- Start the Game
- Select the number of players and their types (Human or AI)
options are:
- FCC: Farfi-Checcho-Ciccio AI (ai source code)
- MPS: Marco-Pasquale-Simone AI (ai source code)
- Dumb: Random AI (ai source code)
- Human: Human Player
- Press Play
- Enjoy!
The rules of the game are the same as the original game (Italian Edition), with the following exceptions:
- The game is played with 2 to 6 players
- The game ends when a player conquers the entire world
for more information see this rules guide (italian).
If you're playing as a human player, you can use the following controls:
- Left Click on a territory
for each phase the selection has a different meaning
- in the reinforce phase, you select the territory to reinforce
- in the attack phase, you first select the attacking territory and then the attacked territory
- in the fortify phase, you first select the territory from which to take the reinforcements and then the territory to reinforce
- Skip Button: Skip the current phase (in reinforce this will spend all the remaining reinforcements randomly)
- Exchange Button: Exchange the cards for reinforcements (only if you have 3 cards with a valid combination)
FCC Group:
MPS Group: