コード例 #1
0
 public void WhoseMove(ChessLogic.Color color)
 {
     if (color == ChessLogic.Color.Black)
     {
         whoseMove.Content = "Ход черных";
     }
     else if (color == ChessLogic.Color.White)
     {
         whoseMove.Content = "Ход белых";
     }
 }
コード例 #2
0
 public void Win(ChessLogic.Color whoWin)
 {
     whoseMove.Content = whoWin == ChessLogic.Color.White ? "Black King is defeated, white won!" : "White King is defeated, black won!";
     sp.SoundLocation  = path + "\\sounds\\win.wav";
     sp.Play();
 }