How forcequit712/standard-game works
This repository is a small collection of browser-based games and game pages, rather than a single application; the README does not describe their capabilities. The clearest end-to-end workflow in the sampled source is online chess: a player hosts or joins a game, the client polls for its start and moves, and PHP endpoints exchange move data through game files. The tree also identifies standalone chess, GN Math, Tetris, and other pages, but their behavior and wiring were not sampled, so those are represented only as separate product surfaces.
Main entry points: game.js Chess game client · hostGame.php Host game · joinGame.php Join game · waitForStart.php Wait for start
Components 15
Chess
- Chess page
chess/index.html - Chess game client
chess/js/game.js - Host game
chess/php/hostGame.php - Join game
chess/php/joinGame.php - Wait for start
chess/php/waitForStart.php - Wait for move
chess/php/waitForMove.php - Record move
chess/php/makeMove.php - Game files
Other game pages
- GN Math game
gn-math/gn.html - GN Math build page
gn-math/260/index.html - Tetris page
tetris.html - Music page
mus7.html - Version page
1.5.2.html - Source-view page
view-page-source.com-medv.io_bit-planes_.html
Other components
- Player
Connections 12
- Player → Chess page: opens
- Player → Chess game client: plays
- Chess game client → Host game: hosts
- Chess game client → Join game: joins
- Chess game client → Wait for start: polls start
- Chess game client → Wait for move: polls moves
- Chess game client → Record move: sends move
- Host game → Game files: creates
- Join game → Game files: marks joined
- Wait for start → Game files: reads
- Wait for move → Game files: reads
- Record move → Game files: writes