Esempio n. 1
0
 private void btnHint_Click(object sender, EventArgs e)
 {
     if (Board == null)
     {
         return;
     }
     if ((Board.WhiteToMove == true && Board.OwnSide == ChessSide.White) || (Board.WhiteToMove == false && Board.OwnSide == ChessSide.Black))
     {
         btnHint.Enabled = false;
         //if (Board.WhiteToMove == true)
         //    Board.WhiteToMove = false;
         //else
         //    Board.WhiteToMove = true ;
         Board.Enabled = false;
         Board.Computer_Move(Board.OwnSide, Board.Difficulty);
     }
 }
Esempio n. 2
0
 private void btnHint_Click(object sender, EventArgs e)
 {
     if (Board == null)
     {
         return;
     }
     if ((Board.WhiteToMove == true && Board.OwnSide == ChessSide.White) || (Board.WhiteToMove == false && Board.OwnSide == ChessSide.Black))
     {
         Board.Enabled = false;
         GameDifficulty eDiff;
         if (intMoveCount == 3)
         {
             eDiff = GameDifficulty.Hard;
         }
         else
         {
             eDiff = GameDifficulty.Normal;
         }
         Board.Computer_Move(Board.OwnSide, eDiff);
     }
 }