Basic Chess engine with built-in AI opponent. I tried my best to properly follow the games rules but Im sure I missed a bunch of stuff.
To play you just click on a piece, it then marks all the squares it can move to. For advice on how to actually play the game refer to external resources like this. There are controls to pause the game (stops AI from making moves), reseting the board, as well as stepping between previous moves (visual only). The current color to move and match ending information is displayed on the top left of the screen.
About the AI opponent, its using a basic minimax search with alpha-beta pruning, plus some heuristic piece square tables for evaluating positions. Because vizzy is slow (and because im not very good at chess programming) the bot can really only search to a depth of 3 before it takes unreasonably long to respond, you can change the search depth to whatever you like in game though. Despite this its actually surprisingly competent and I have a hard time beating it (though I also just suck at the game).
If there are enough problems and/or enough features people would want I might make a version 2.
Have fun.
also, great resource and S tier channel in general
22 Comments
- Log in to leave a comment
-
2,237 TomKerbal
@Insanity Really good, fun. He just swapped his queen for my rook without need and then lost (SearchLevel = 3). But I'm really happy when I'm allowed to win :-D
-
-
-
2,237 TomKerbal
@Zenithspeed ah, you mean "en passant" .
ELO is about 1000 I guess after a few matches (@ search level 3) -
-
-
-
-
905 Skye93
@Raoulsueee but you shouldn’t do that on other ppl’s posts, just post ur own stuff and if it’s really good, it’ll get a bunch of upvotes
-
300 Raoulsueee
@Fyrem0th 😮💨it is because I’m not that popular so I advertise people to check my craft I just started 12 days ago
-
-
10.9k Insanity
@OrbitalSailorsAerospace good question, probably not particularily high though, its severly limited by the depth it can search to.
-
-
1,667 GrandmasterPotato
@Insanity yeah I know, it was a joke based on how crazy good some of these builds are
-
-
10.9k Insanity
@GrandmasterPotato I've made a couple of 3d engines in the last years but the performance would not be good enough for anything of that scale, at least not something thats actually playable. Though someone did make sfs which is quite impressive
-
-
-
-
-
@TomKerbal lol, yeah at times it definitely misevaluates some moves