Skip to content

Farfi55/RiskASP

Repository files navigation

Risk ASP

Description

Risk ASP is an implementation of the board game 🎲 Risk using the Unity Game Engine.

AI

The AI is implemented using Answer Set Programming (ASP) and integrated using the EmbASP framework for C#.

Play 🎮

You can download and play over https://farfi55.itch.io/riskasp, on your favourite OS (Windows, Linux, Mac)

Installation

Requirements

Setup

  1. Clone the repository
  2. Open the project in Unity
  3. Open the scene Assets/Scenes/Menu.unity
  4. Start the Game
  5. Select the number of players and their types (Human or AI) options are:
    1. FCC: Farfi-Checcho-Ciccio AI (ai source code)
    2. MPS: Marco-Pasquale-Simone AI (ai source code)
    3. Dumb: Random AI (ai source code)
    4. Human: Human Player
  6. Press Play
  7. Enjoy!

How to Play

Game Rules

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).

Controls

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)

Authors

FCC Group:

MPS Group:

Screenshots

Main menu turn 15 cards exchange turn 22 domination turn 25 victory screen