Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
Added Goal of the game, phases and turns sections
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniloNovakovic committed Aug 26, 2019
1 parent 4533ef9 commit c0ae785
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ aswell as, in any time, inside of programm by typing command `/help` or by selec
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Game rules](#game-rules)
- [Goal of the game](#goal-of-the-game)
- [Phases](#phases)
- [Turns](#turns)
- [Supported Commands](#supported-commands)
- [Pieces and movement](#pieces-and-movement)
- [Personal Logs](#personal-logs)
Expand Down Expand Up @@ -58,6 +61,41 @@ Use these steps to compile and start console application.

## Game rules

### Goal of the game

The goal of the game is to stop enemy pawns & bishops from reaching to 1st row of the board.

- If board is *FULL* on AI's turn, then the game will end.
- If player lost *ALL OF HIS PIECES* then the game will end.

At the end of the game player will be prompted to enter the name, after which the result will be printed out in the *scoreboard.txt*

> Score won't be recorded if the program has been closed with /exit command
### Phases

#### Initial setup

At the beginning of the game player decides places 3 knights and 2 bishops on any column from 1st to 5th row of the board. During this phase player can use :

- `/end, /exit` - exit the game
- `/re` - resets the initialization setup
- `/random` - generates bishops and knights on random positions.

Upon completion player will be prompted to confirm the setup.

![Random Demo](docs/random.gif)

#### Waves

After [initial setup](#initial-setup), the game begins, and first randomly generated wave starts. Each wave gets harder and harder as the game goes on.

### Turns

`PLAYER` - is able to move 1 piece during his turn (with exeption of shop).

`ENEMY_AI` - During 1 turn EVERY piece with legal moves will be moved. If NO PIECE has ANY LEGAL MOVE then *N* new pawns will be randomly generated anywhere from 7 to 12th row.

### Supported commands

`/back` - goes back to the main menu.
Expand All @@ -70,8 +108,6 @@ Use these steps to compile and start console application.

`/random` - only at init_setup (beginning stage). Generates 3 knights and 2 bishops on random positions.

![Random Demo](docs/random.gif)

`/exit`, `/end` - exits the program.

`/undo` - undoes previous move. Can be used from start to finish of the **CURRENT** wave. **Once the wave completes undo history is deleted!**
Expand Down

0 comments on commit c0ae785

Please sign in to comment.