Giter Club home page Giter Club logo

riskasp's Introduction

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

riskasp's People

Contributors

checcostra avatar cicciogallo13 avatar farfi55 avatar markducks avatar ryuk4real avatar simonerotundo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

riskasp's Issues

2210 AD version

Is anyone interested in helping me create the 2210 ad version of this game?
https://en.m.wikipedia.org/wiki/Risk_2210_A.D.

There used to be a Java version, you can find its source here, but Java security updates killed it
https://github.com/avioane/InvadeEarth

I identified a couple of things that need to be done in this trello board
https://trello.com/invite/b/BaUFhOdd/ATTI4fbb61320e280b269e01fe7068e9a64fC9989A48/invade-earth

If any of the developers on this project could help(even by giving guidance,like answering questions) it would be amazing. Thank you

Repeat attack button

often we want to repeat attacking the same territory from the same place, add a button to do this easily without having to select the territories again

Visual indication of Action when coming from a BOT

mimic territory selection like the user does when drafting, attacking or fortifing

example:

  • for the attack, when received an AttackAction select the from territory, after a brief delay select the to territory and finally perform the actual attack.
  • all of this has to be done within the action delay in the ActionReader.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.