Backgammon Game

Backgammon Game in Python/Django for backend and React for frontend.

Visit my game:
https://backgammon-game-jxv0.onrender.com/ 

Github Repo:
https://github.com/franciscojavierguardado101/backgammon-game

About the Game                                                                                
                                                                                                
  Backgammon Grandmaster is a fully playable backgammon game built as a single-page web       
  application. You play against an AI opponent directly in your browser with no installation    
  required.       
                                                                                                
  How it works:   
                                                                                              
  1. Start a game — Choose your name, pick your checker color (White or Black), select a board  
  theme, and set the AI difficulty
  2. Take turns — Click "Roll Dice" to roll, then click a checker to see valid moves highlighted
   on the board. Click a destination to move                                                    
  3. AI responds — After your turn, the AI automatically rolls and plays its moves with a short
  delay so you can follow along                                                                 
  4. Win condition — First player to bear off all 15 checkers wins
                                                                                                
  Game rules supported:                                                                         
  - Hitting blots and sending them to the bar                                                 
  - Re-entering from the bar before any other move                                              
  - Bearing off once all checkers reach the home board
  - Doubles granting 4 moves instead of 2                                                       
  - 2-minute turn timer
                                                                                                
  AI difficulty levels:
  - Easy — plays random legal moves                                                             
  - Medium — plays the best move 70% of the time, random 30%                                    
  - Hard — evaluates all possible move sequences and picks the strongest one                  
                                                                                                
  Board themes: Classic, Midnight, Emerald, Slate


  Frontend: React 18, Vite, Tailwind CSS, Framer Motion                                         
                                                                                              
  Backend: Python, Django 5, Django REST Framework                                              
                                                                                                
  Game Logic: Custom backgammon engine written in Python, runs server-side
                                                                                                
  State Management: Django sessions (game state lives on the server between turns)
                                                                                              
  API: REST API — dice rolls, moves, and AI actions are all HTTP requests                       
   
  Deployment: Render (free tier), served via Gunicorn + Whitenoise                              
                  
  Source Control: GitHub