IsDraw() is never returning true when a position is a draw
See original GitHub issue`public Move Think(Board board, Timer timer) { isWhite = board.IsWhiteToMove; Tuple<Move, float> BestMove = MiniMax(board, 4, -100000, 100000, true); Console.WriteLine(“ChosenMove: " + BestMove); Console.WriteLine(”-=-=-=-=-=-=-=-=-=-=-"); board.MakeMove(BestMove.Item1); if (board.IsDraw()) { System.Threading.Thread.Sleep(1000000); }
return BestMove.Item1;
}`
this never sleeps when a drawing position occurs. i cannot get IsDraw() to return true.
Issue Analytics
- State:
- Created 2 months ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How do I determine a winner in my Tic Tac Toe program
You have already the loop to play, so, in each iteration, in the same way you check if the game isDraw() , check...
Read more >tic tac toe/nought and crosses exercise
HI chaps I am trying to build a simple tic tac toe application. 1) what type should the array have?
Read more >Tic-tac-toe - Java Game Programming Case Study
Compute and return the * new game state (PLAYING, DRAW, CROSS_WON, NOUGHT_WON) ... validInput); // repeat until input is valid } /** The...
Read more >Simple Tic-Tac-Toe JavaScript game for beginners
This one just returns the value in case there is a draw, meaning that neither of the players has won. There is also...
Read more >Chess.js
isGameOver(). Returns true if the game has ended via checkmate, stalemate, draw, threefold repetition, or insufficient material. Otherwise, returns false.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed in the latest version, sorry about that!
The newest update to the file seems to have fixed the issue.