Skip to content

Mateusz-best-creator/BackGammon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C_Backgammon

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.

Database

Manage your player database with the ability to add and delete players. The player's points are visible in the Hall of Fame.

AI Bots

Engage in games with two AI bots, each employing distinct playing strategies. Alternatively, let them face off against each other.

Saving Each State of the Game & Visualizing

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.

Saving File Format

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.

File Descriptions

  • 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.

AI VS AI Folder

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published