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

Hydrating Clients #11

Open
ChristopherJMiller opened this issue Dec 1, 2022 · 1 comment
Open

Hydrating Clients #11

ChristopherJMiller opened this issue Dec 1, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ChristopherJMiller
Copy link
Member

When a client connects to the server, it needs to be sent the game state for everything it would know. Then, it needs to receive new information per game tick to make decisions on. Written out, this is identical to libmahjong's strict server-client relationship and later gametable network implementation.

The web observer can as well take advantage of this mechanic but receive them over a protocol such as WebRTC.

Depending on what we decide, the game state a player receives might be the entire game boards info (no fog of war), selective info on the merit of vision (fog of war), or selective based on proximity to players (optimization about what's being sent)

@ChristopherJMiller ChristopherJMiller added the enhancement New feature or request label Dec 1, 2022
@ChristopherJMiller
Copy link
Member Author

Paging @HartleyAHartley lol I didn't expect ipv8 to have a perfect use case for libmahjong's model but it's basically the same premise. AI's are provided state and turn by turn information, submit your turn decisions, repeat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant