Added the ability to choose your cardtype when playing a jack or the newly added joker
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user