示例#1
0
 public Case FindCase(Map map, Piece p)
 {
     foreach (Case c in map.CaseList)
     {
         if (c.Piece == p)
             return c;
     }
     return null;
 }
示例#2
0
 public void InitGame()
 {
     map = new Map();
     player1 = new Player(1, true);
     player2 = new Player(2, false);
     gameTurn = true;
     playAgain = true;
     gamePlaying = true;
     whiteEchec = false;
     blackEchec = false;
 }