basic mau
This commit is contained in:
16
Mau/GameState.cs
Normal file
16
Mau/GameState.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace MauMau_Server.Mau;
|
||||
|
||||
public class GameState
|
||||
{
|
||||
public List<string> Hand { get; set; } = new();
|
||||
public string CurrentCard { get; set; }
|
||||
|
||||
public GameState(Game game)
|
||||
{
|
||||
foreach (var card in game.Hand)
|
||||
{
|
||||
Hand.Add(card.ToString());
|
||||
}
|
||||
CurrentCard = game.CurrentCard.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user