https://github.com/san089/soen_6441
A multiplayer board Risk Game.
https://github.com/san089/soen_6441
coding-standards design-patterns documentation organizing programming-game risk-game testing
Last synced: about 2 months ago
JSON representation
A multiplayer board Risk Game.
- Host: GitHub
- URL: https://github.com/san089/soen_6441
- Owner: san089
- License: gpl-3.0
- Created: 2019-09-12T18:49:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T16:13:51.000Z (over 4 years ago)
- Last Synced: 2025-01-17T04:46:04.257Z (3 months ago)
- Topics: coding-standards, design-patterns, documentation, organizing, programming-game, risk-game, testing
- Language: Java
- Homepage:
- Size: 37.9 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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

# 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 -noattackdo 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 Commandtournament -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