basic logic + multiplayer

This commit is contained in:
2023-03-17 11:42:53 +01:00
parent d05ece2efc
commit 5d1e78094f
6 changed files with 106 additions and 39 deletions

20
Mau/Player.cs Normal file
View File

@@ -0,0 +1,20 @@
using System.Net.WebSockets;
namespace MauMau_Server.Mau;
public class Player
{
public string Name { get; set; }
public string PlayerId { get; set; }
public WebSocket Socket { get; set; }
public List<Card> Hand { get; set; } = new();
public Player(string name, string playerId, WebSocket socket)
{
Name = name;
PlayerId = playerId;
Socket = socket;
}
public bool IsMe(string playerId) => PlayerId == playerId;
}