public void WhoseMove(ChessLogic.Color color) { if (color == ChessLogic.Color.Black) { whoseMove.Content = "Ход черных"; } else if (color == ChessLogic.Color.White) { whoseMove.Content = "Ход белых"; } }
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(); }