This repository houses all the files for my university Backgammon project, coded entirely in C++. While the primary language is C++, certain features, such as file opening and constant definition, adhere to C conventions using #define instead of const.
Manage your player database with the ability to add and delete players. The player's points are visible in the Hall of Fame.
Engage in games with two AI bots, each employing distinct playing strategies. Alternatively, let them face off against each other.
Every game state is meticulously saved to a file. After completing a game, delve into visualization mode to review each state from inception to conclusion. Navigate forward or backward one state at a time, empowering you to conduct thorough game analyses.
N 0 0
P 0 0
D 0 0
A 0 0
R 0 0
R 0 1
B 5 0
B 5 1
N: Indicates a new state of the game.
P: Indicates player points.
D: Indicates removed pawns for each player.
A: Indicates pawns on the bar for each player.
B: Indicates the position (column, row) for B pawns.
R: Indicates the position (column, row) for R pawns.
- state_of_the_game.txt: Contains the entire game, with each state of the game separated by the letter 'N'.
- game_to_load.txt: Stores one specific state of the game that the player can load and play.
- state_of_the_game_visually.txt: Contains a visually drawn table for each state of the game, displaying players' names and points.
Within this directory, I store 5 games featuring AI bots playing against each other. You can utilize the contents of these files to visually explore and analyze the progression and outcomes of these games.