How kiran-mondal/pachisi works
Pachisi is a browser-based Pachisi/Chaupar game with player setup, local or bot play, and a dice-driven board experience. The documented user flow is to open the site, configure a game, start it, roll, and progress tokens toward victory. The excerpts show the UI start handler initializing a 3D board, and the game client requesting rolls from a Ruby API. README-documented gameplay capabilities are retained, but their implementation details are not verified in the sampled code.
Main entry points: script.js Setup and UI · game.js Token Movement · index.html Game Site · app.rb Dice Roll API
Components 14
Web Experience
- Game Site
index.html - Setup and UI
script.js - Projects Page
projects/index.html
Game Play
- 3D Board
game/game.js - Game Modes
game/game.js - Player Setup
game/game.js - Token Movement
game/game.js - Turns and Captures
game/game.js - Win Condition
game/game.js - Roll Client
game/game.js
Game Services
- Dice Roll API
backend/app.rb
Project Extras
- Penpot Handler
api/penpot.js
Other components
- Player
- Penpot
Connections 13
- Player → Game Site: opens
README.md - Game Site → Setup and UI: presents
- Setup and UI → 3D Board: initializes
script.js - Player → Player Setup: configures
README.md - Player Setup → Game Modes: selects
README.md - Game Modes → Token Movement: governs movement
README.md - Player → Roll Client: requests roll
game/game.js - Roll Client → Dice Roll API: fetches roll
game/game.js - Dice Roll API → Roll Client: returns dice
game/game.js - Turns and Captures → Token Movement: captures tokens
README.md - Token Movement → Win Condition: progresses toward
README.md - Setup and UI → Projects Page: navigates to
script.js - Penpot Handler → Penpot: fetches file
api/penpot.js