Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pluggable boards, display battleships games on the UI #4

Open
5 tasks
reddyalready opened this issue Dec 19, 2021 · 0 comments
Open
5 tasks

Comments

@reddyalready
Copy link
Member

reddyalready commented Dec 19, 2021

Will use this space to agree steps and a specification.

Steps

  • Add a Board.ts, and a board instance member to Game.ts here.
  • Send board from game server whenever game stats are sent.
  • Receive/Persist (to disk?) board in the tournament server.
  • Send a subset of boards to the UI during tournaments (as not all need to be send/displayed)
  • Make available all boards at the end of a match/tournament (e.g. for players, by click of a UI button, retrieve from server).

Spec

Board.ts

Suggest we have a generic type of board and then allow game implementation to supply a more detailed board, that can be used by a UI renderer (if one exists) to render the more detailed board.

Generic variant: TBD

Detailed examples:

Battleships: TBD

Ultimate TTT: TBD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant