Giter VIP home page Giter VIP logo

risk's People

Contributors

amittbhardwj avatar gunpreetahuja avatar gurpreetraju avatar harinderkaur11 avatar jyotsna19 avatar jyotsnarana avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

risk's Issues

Reinforcement

  • Calculation of correct number of reinforcement armies according to the Risk rules.
  • Players place reinforcement armies on the map.

Logging window

Logging window that clearly demonstrates that the game phases and rules are properly applied.

Save a map

Saving a map to a file exactly as edited (using the “conquest” game map format).

Load a map

Loading a map from an existing “conquest” map file, then editing the map. 3

Map validation

include condition all nodes are connected and form connected graph.
(ex. o-o, o-o)

Attack phase

  • Player can declare an attack by selecting attacker and attacked country.
  • Attacker and attacked player decide how many dice to roll.
  • Proper number of armies are deducted from attacker/defender country.
  • If defender is conquered, attacker can move any number of its armies in the conquered country. If it results in conquering the whole map, the attacker is declared the winner and the game ends.
  • Player may decide to attack or not to attack again. If attack not possible, attack automatically ends.

fortification phase

Implementation of a valid fortification move according to the Risk rules.

StartUp Phase

  • Game starts by user selection of a user-saved map file, then loads the map as a connected graph.
  • User chooses the number of players, then all countries are randomly assigned to players.
  • Players are allocated a number of initial armies, depending on the number of players.
  • In round-robin fashion, the players place one by one their given armies on their own countries.

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.