Trpg is a project mainly written in PYTHON and JAVASCRIPT, it's free.
A prototype framework for 2D web-based board games using Hookbox and Django
The game is only active when two players are both logged in to the same game room.
In the database, a game room maintains two lists of players:
game_room.players: The users who are currently playing the game.
hookbox.subscribe
is called by hookbox-server, and the user
is added to the list of players.hookbox.unsubscribe
is called by hookbox-server, and the
user is removed from the list of players.game_room.ready: Used to signal turn change events within the
game. When two players are ready, the next turn can begin. The
endpoint views.ready
is called from Javascript to tell
the server when a user is ready for a turn to begin.
views.ready
endpoint to signal that
the user is ready to start the game.views.ready
endpoint
to signal that the user is ready to proceed to the next turn.