Exemple #1
0
 public Game(User firstPlayerUser, long id)
 {
     //this.Board = new ChessBoard();
     this.FirstPlayer = firstPlayerUser;
     this.SecondPlayer = null;
     this.Id = id;
 }
Exemple #2
0
 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:
             // Сообщение об ошибке
     }
 }
Exemple #3
0
 public void GiveUp(User Player)
 {
 }