Skip to content

Bootstrap TicTacToe#313

Open
marein wants to merge 22 commits intomasterfrom
add-tic-tac-toe
Open

Bootstrap TicTacToe#313
marein wants to merge 22 commits intomasterfrom
add-tic-tac-toe

Conversation

@marein
Copy link
Owner

@marein marein commented Jan 28, 2026

This context works mostly like Connect Four, except that it distinguishes explicitly between a Challenge and a Game, and that it's using Event Sourcing (no specific reason, just showcasing). Further, the database in this context will not be sharded and other measurements for extended scalability aren't implemented, because that's showcased in the Connect Four context already.

This pull request just bootstraps the context and will only add the Challenge invariants. The Game comes later as the pull request is huge already.

There's quite some duplication that can be squashed, especially some JavaScript components can be generalized. Some duplication is good but, e.g., the timer is the timer, the lobby will function the same, maybe the animation for grid sized board games will likely stay the same. At least the files have been copied and adapted.

@marein marein self-assigned this Jan 28, 2026
@marein marein changed the title Add tic tac toe Bootstrap TicTacToe Jan 28, 2026
$this->publisher->send(
new Message(
'TicTacToe.' . $this->nameFromDomainEvent($content),
json_encode(
Copy link
Owner Author

@marein marein Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Json is used for faster bootstrapping. Should be changed to use protobuf via https://github.com/gaming-platform/api. Either now, or after the game is added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments