Giter Club home page Giter Club logo

soen_6441's Introduction

Multiplayer Risk Board Game

Overview

A Risk game consists of a connected graph map representing a world map, where each node is a country and each edge represents adjacency between countries. Two or more players can play by placing armies on countries they own, from which they can attack adjacent countries to conquer them. The objective of the game is to conquer all countries on the map.

Architecture Diagram

Architecture Diagram MVC Diagrame

Game Commands

Map Editor Command

editcontinent -add continentname continentvalue -remove continentname

editcountry -add countryname continentname -remove countryname

editneighbor -add countryname neighborcountryname -remove countryname neighborcountryname

showmap (show all continents and countries and their neighbors)

savemap filename

editmap filename

validatemap

Game Play

 showmap

Startup Phase

loadmap filename

gameplayer -add playername -remove playername

populatecountries

placearmy countryname (by each player until all players have placed all their armies)

placeall (automatically randomly place all remaining unplaced armies for all players)

Reinforcement Phase

reinforce countryname num (until all reinforcement armies allocated to the player have been placed)

exchangecards num num num
exchangecards –none

Attack Phase

attack fromcountry tocountry numdice
attack fromcountry tocountry -allout
attack -noattack

do a single attack from countrynamefrom to countynameto using numdice number of dice. If –allout is specified, attack until no attack is possible using maximum number of dice to attack/defend. If –noattack is specified, stop attacking, ending the attack phase.)

defend numdice (after attack is declared, defender chooses number of dice to defend with)

attackmove num (After a country has been conquered, move num number of armies to this country from the attacking country.)

Fortification Phase

fortify fromcountry tocountry num
fortify –none
(move num number of armies from fromcountry to tocountry. If –none is specified, choose to not do a move during the fortification phase)

Tournament Command

tournament -M D:\SOEN_6441\Maps\Valid_Maps\BigValidMap.map|D:\SOEN_6441\Maps\Valid_Maps\BigValidMap.map|D:\SOEN_6441\Maps\Valid_Maps\BigValidMap.map -P Random|Benevolent|Aggressive -G 4 -D 10

soen_6441's People

Contributors

hanfordwu avatar san089 avatar shonibare avatar shubhamsagar avatar suchetavs avatar

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.