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

[engine] Add a generic board manager #10

Open
lunacys opened this issue Apr 24, 2024 · 0 comments
Open

[engine] Add a generic board manager #10

lunacys opened this issue Apr 24, 2024 · 0 comments
Labels
engine Engine-related tasks feature A new feature

Comments

@lunacys
Copy link
Collaborator

lunacys commented Apr 24, 2024

A board manager structure might be useful for both server and client.

Board manager stores unlimited amount of boards. Each board should run in parallel.

It also should be capable of returning current board's state:

  • Occupied cells
  • Current piece
  • Held piece
  • Incoming garbage
  • Stats (APM, PPS, etc)
  • ...

By default each board is disabled, which means that the match is not started yet. And the match may be started at any time when the manager receives a particular command.

An outdated and commented example can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Engine-related tasks feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant