Backgammon AI is a full game of backgammon where you play against a computer opponent at three difficulty levels.

Roll the dice, move your checkers around the board, and try to bear off all 15 before the AI does. The game follows the standard rules, including hitting blots, re-entering from the bar and bearing off.

AI difficulty

  • Easy: random moves
  • Medium: greedy search (depth 1)
  • Hard: Expectiminimax search (depth 2), which weighs every possible dice roll when planning its move

How to play

  • Choose a difficulty on the title screen.
  • You play White.
  • Press Space to roll the dice.
  • Click a checker, then click a green marker to move it there.

Built for the module 5ENT1140 Artificial Intelligence Principles at the University of Hertfordshire. Made in Python with Pygame and packaged for the web with pygbag.

Created by Krishna Mahajan (106wucww).

Updated 18 days ago
Published 24 days ago
StatusReleased
PlatformsHTML5
Authorkris072008
GenreStrategy
Tagsartificial-intelligence, Board Game, Dice, Singleplayer
ContentNo generative AI was used

Leave a comment

Log in with itch.io to leave a comment.