Skip to content

feat: Implement basic WebSocket multiplayer functionality #1

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcembalest
Copy link
Owner

Adds a WebSocket-based multiplayer mode to the Tessellate game.

Key features:

  • Players can create a new online game, receiving a shareable session ID.
  • A second player can join the game using the session ID.
  • Game state (board, turns, scores) is synchronized between players via the server.
  • Server handles turn validation and basic game logic.
  • Client UI updated to support creating, joining, and playing online games.
  • User feedback and error handling for connection states and game events.
  • If a player disconnects, the other player is declared the winner.

This implementation provides ephemeral session data and avoids complex account creation, allowing you to play by sharing a direct link/session ID. Further testing of the client-server integration by you is recommended.

Adds a WebSocket-based multiplayer mode to the Tessellate game.

Key features:
- Players can create a new online game, receiving a shareable session ID.
- A second player can join the game using the session ID.
- Game state (board, turns, scores) is synchronized between players via the server.
- Server handles turn validation and basic game logic.
- Client UI updated to support creating, joining, and playing online games.
- User feedback and error handling for connection states and game events.
- If a player disconnects, the other player is declared the winner.

This implementation provides ephemeral session data and avoids complex account creation, allowing you to play by sharing a direct link/session ID.
Further testing of the client-server integration by you is recommended.
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