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

Che bato/private lobbies #39

Merged
merged 11 commits into from
Jan 7, 2025
Merged

Che bato/private lobbies #39

merged 11 commits into from
Jan 7, 2025

Conversation

CheBato
Copy link
Collaborator

@CheBato CheBato commented Jan 3, 2025

  • Added ability to create private lobbies.
  • Added link support for joining game.
  • Refactored FetchDeckData since we are using it in three locations I made it as a utility function.

- homestretch
- added copy invite link.
@CheBato CheBato requested a review from danbastin as a code owner January 3, 2025 22:07
CheBato and others added 6 commits January 3, 2025 23:49
- Fixed bug with usernames and ids for the game.
- Adjusted FE to work with changes to the BE.
- Adjusted FE to work with changes to the BE.
- Cleaned console.logs
@danbastin
Copy link
Contributor

I hit an error when trying to pick first player while I was player 2. Seems like the player name was not being set for the game. CardClicked should probably be switched to use the players id instead of their name, but it would probably be good to have it working either way.

@CheBato
Copy link
Collaborator Author

CheBato commented Jan 6, 2025

I hit an error when trying to pick first player while I was player 2. Seems like the player name was not being set for the game. CardClicked should probably be switched to use the players id instead of their name, but it would probably be good to have it working either way.

Absolutely seems like I missed this during my initial testing. I'll have a look and fix it up asap. My mistake

CheBato and others added 3 commits January 6, 2025 18:57
- Fixed bug with privateLobbies and username.
 in the Game.context.tsx we had to add username to the JSON user when setting the newSocket since once we set the socket it cannot be changed.
- Added X functionality to the gameboard so that we can return to the homepage when clicking X.
@danbastin danbastin merged commit 585b686 into main Jan 7, 2025
1 check passed
@danbastin danbastin deleted the CheBato/privateLobbies branch January 7, 2025 01:07
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.

2 participants