A class project to sucessfully write a game using Object Oriented Programming
How to play - Taken from Hasbro rules
1 Marshal 1 General 2 Colonels 3 Majors 4 Captains 4 Liutenents 4 Seargents 5 Miners 8 Scouts 1 Spy
6 Bombs 1 Flag
- Turns alternate, first Red the Blue.
- A piece moves from square to square, one square at a time (Exception: Scout -- see rule 7). A piece may be moved forward, backward, or sideward but not diagonally.
- Two pieces may not ocupy the same square at the same time.
- A piece may not move through a square occupied by a piece nor jump over a piece.
- Only one piece may be moved in each turn.
- The Flag and Bomb pieces cannot be moved. Once these pieces are placed at the start of the game they must remain in that square.
- The Scout may move any number of open square forward, backward, or sideward in a straight line if the player desires. Therefore, the player may choose to move the Scout only one square in his turn, so as to keep the Scout's identity hidden. The Scout is valuable for probing the oppenent's positions. The Scout may not move and strike in the same turn.
- Pieces cannot be moved back and forth between the same 2 squares in 3 consecutive turns.
- A player must either move or strike in his turn.
- Wehn a red and blue piece occupy adjoining squares either back to back, side to side, or face to face, they are in a position to strike. No diagonal strikes can be make.
- A okayer may move on his/her turn or strike on their turn. He/She cannot do both. The strike ends the turn. After pieces have finished the strike move, the player who was struck has his/her turn to move or strike.
- It is not required to strike when two opposiing pieces are in position. A player may decide to strike, whenever he/she desires.
- Either player may strike (on his/her turn); not only the one who moved their piece into position.
- The piece with the lower rank is lost and removed from the board. The winning higher-ranking piece is then moved immediately into the empty square formerly occupied by the losing piece.
- When equal ranks are struck, then both pieces are lost and removed from the board.
- A Marshal removes a General, a General removes a Colonel, and A Colonel removes a Major and so on down to the Spy, which is the lowest ranking piece.
- The Spy, however, has the special privilege of being able to remove only the Marshal provided he/she strikes first. This is, if the Spy strikes the Marshal on his/her turn, the Marshal is removed. However, if the Marshal strikes first, the Spy is removed. All other pieces remove the Spy regardless of who strikes first.
- When any piece (except a Miner) strikes a Bomb (Bang!) that piece is lost and is removed from the board. The Bomb does not move into the empty square, but remains in its original position at all times. When a Miner strikes a Bomb, the Bomb is lost and the Miner moves into the unoccupied square.
- A Bomb cannot strike, but rather must wait until a moveable piece strikes it.
- Remember, the Flag also can never be moved.
When a player strikes his.her opponent's Flag, the game ends and he/she is the winner.
Note: If a player cannot move a piece or strike in his/her turn, they must give up and declare their opponent the winner.