board.jpg
This commit is contained in:
16
README.md
16
README.md
@@ -1,5 +1,7 @@
|
|||||||
# candyland
|
# candyland
|
||||||
|
|
||||||
|
Simulation of Candyland.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cmake -S . -B build
|
cmake -S . -B build
|
||||||
cmake --build build
|
cmake --build build
|
||||||
@@ -104,4 +106,18 @@ shortest game: 6 draws
|
|||||||
81: 1
|
81: 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Discussion
|
||||||
|
|
||||||
|
Our version of Candyland seems to have a key difference [rules I can find posted online](https://www.wikihow.com/Play-Candy-Land):
|
||||||
|
|
||||||
|
* Two players cannot occupy the same space. If you land on a space occupied by another player, move your piece to the next space of the same color.
|
||||||
|
|
||||||
|
This rule introduces a problem: what if there is no available space of the same color?
|
||||||
|
I decided that under such circumstances, the player does not move at all.
|
||||||
|
|
||||||
|
Furthermore, it appears there's some variety in board layout.
|
||||||
|
Here's ours, featuring two shortcuts and a split path:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user