Added the ability to choose your cardtype when playing a jack or the newly added joker
All checks were successful
Build Mau & Deploy Mau / build (push) Successful in 1m14s
Build Mau & Deploy Mau / deploy (push) Has been skipped

This commit is contained in:
DTieman
2024-04-19 22:10:21 +02:00
parent b3d8bbd50e
commit 56034b921f
6 changed files with 58 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
public class GameState
{
public string PlayerName { get; set; }
public string CurrentState { get; set; }
public List<string> Hand { get; set; } = new();
public string CurrentCard { get; set; }
public string CurrentPlayer { get; set; }
@@ -12,6 +13,7 @@ public class GameState
{
var p = game.GetPlayer(playerId);
PlayerName = p.Connection.ConnectionId;
CurrentState = p.State.ToString();
foreach (var card in p.Hand)
{
Hand.Add(card.ToString());
@@ -23,6 +25,6 @@ public class GameState
}
CurrentCard = game.CurrentCard.ToString();
CurrentPlayer = game.CurrentPlayer.Connection.ConnectionId;;
CurrentPlayer = game.CurrentPlayer.Connection.ConnectionId;
}
}