I Made An Evilbot Using Stockfish, To Help Test Bots. #311
Rhxydos
started this conversation in
Show and tell
Replies: 1 comment
-
Update: Now with fewer (hopefully none) illegal moves! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to be able to evaluate how good my bot actually is, and decided to borrow an idea from one of Tom7's videos. The idea is to "dilute" a powerful chess engine like Stockfish with a percentage of random moves. I figured this would probably be better for performance evaluation, since it's hard to tell if your bot is getting better when it loses 100% of the time.
The end result is technically capable of just being a regular Stockfish implementation, if you set the fish ratio to 1. You can also alter how much time it's given to search.
It's been a while since I've worked in C#, so my code is a little ugly, but it seems to be working correctly (I'm also not very knowledgeable about chess, so I can't check it myself).
YOU WILL NEED STOCKFISH INSTALLED FOR IT TO WORK.
Specifically, Stockfish should be accessable just by typing
stockfish
in the command line. How you set that up is up to you, so long as it works. By default, the program uses the bash command line; you will need to change this if you are using a different one.Edit: There seems to be a bug in how the Stockfish Output is handled, hold on.
Rhxydos-FishTestBot.zip
Beta Was this translation helpful? Give feedback.
All reactions