This game is deployed here https://blazor-game.azurewebsites.net/
A Blazor Server application that allows multiple players to play a game of snap across the internet.
This is not a robust game, it's just a simple demo while I learn more about Blazor.
The following steps outline the flow of the game.
A user can create game a new game by supplying a username and a PIN Code.
With the game created, an info panel is displayed with an invitation link and showing the PIN code for the game.
Other users join a game from the supplied link and enter the game by providing a username and entering the PIN Code.
As soon as anybody else (other than the owner) joins the game, the owner can deal the cards.
After the cards have been dealt, each player can see only their own cards. Status messages show which action is required. The following image shows the status message that is displayed to the user whose turn it is to play a card.
After the player whose turn it was to lead has played their card, whichever player has a matching card can play it. The following image shows the status when the game is waiting for a player with a matching Panda card to play.
After a matching card is played, the status updates to show who played the cards for that turn.
Players now take it in turns to lead and match cards until all cards have been exhaused from the hands.
With all hands completed, the owner is presented with an option to Play again