Interactive browser recreation
Game Board
Select an empty cell for your first move. After that, play only on cells you own.
Game Log
About this project
Original C++ game logic, recreated for the browser.
The original Windows Console C++ coursework uses a 5 × 5 board, Red and Blue players, mouse-based console input, explosions and captures, and file-based save and load.
This browser recreation uses HTML, CSS, and Vanilla JavaScript while
preserving the first-move and own-cell rules, orthogonal spreading, chain
reactions, and winner detection. Browser storage replaces save.txt.
How to play
Build cells, trigger reactions, and capture the board.
- Red plays first.
- Each player’s first move must be made on an empty cell.
- The first move places three beads in that cell.
- After the first move, a player may select only a cell they own.
- Selecting an owned cell increases its bead count by one.
- A cell explodes when it reaches four beads.
- An explosion sends one bead to each valid up, down, left, and right neighbour.
- Every affected neighbour becomes owned by the current player.
- Chain reactions continue until every cell contains fewer than four beads.
- After both players have entered the board, the player who owns every occupied cell wins.
Repository
C++ source and browser recreation in one project.
The repository preserves the original coursework file alongside the playable browser recreation, game-engine tests, and implementation notes.