How asadbek204/checkersaigame works
This is a browser-based checkers game. The app creates a Game from page elements, then starts it after a countdown. Game builds and renders the board and coordinates turns; Player handles selection, legal moves, captures, and turn completion. AIPlayer exists but its own implementation says it is not working, and the sampled app does not use it. The graph focuses on runtime behavior; it does not infer links to the unsampled HTML or stylesheet.
Main entry points: Game.ts Game coordinator · app.ts App startup · Player.ts Turn and moves
Components 6
Browser app
- App startup
src/ts/app.ts
Game engine
- Game coordinator
src/ts/Game.ts - Board and pieces
src/ts/Game.ts
Player logic
- Turn and moves
src/ts/Player.ts - AI player stub
src/ts/Ai.ts
Other components
- Browser page
Connections 5
- Browser page → App startup: provides elements
src/ts/app.ts - App startup → Game coordinator: creates and starts
src/ts/app.ts - Game coordinator → Board and pieces: builds
src/ts/Game.ts - Game coordinator → Turn and moves: sets turn queue
src/ts/Game.ts - Turn and moves → Game coordinator: calls move callback
src/ts/Player.ts