public Game(User firstPlayerUser, long id) { //this.Board = new ChessBoard(); this.FirstPlayer = firstPlayerUser; this.SecondPlayer = null; this.Id = id; }
public static User JsonResponse(string jsonType) { switch (jsonType) { case "login": User user = new User(); return user; // Запрос к серверу на логин break; case "register": User user = new User(); return user; break; default: // Сообщение об ошибке } }
public void GiveUp(User Player) { }