Hi! Recently, I’ve been working on making fully-playable chess.
I have finally (almost) done it.
https://codepen.io/c0d1ng_ma5ter/full/vYoGJQV
Currently, you can only play against yourself, and check, checkmate, en-passant and castling isn’t implemented yet, but everything else should shork exactly as you expect!
I have future plans to implement a bot, too!
2 Likes
Good news! Check are now (somewhat) implemented (even though you still have to capture the king to win)
I also added a randomly moving bot, so you have someone to play against!
Very nice! It works well.
I captured the king but now it just says “White’s turn” it would be nice if it acknowledged that win and reset the game?
I think it also needs and angle or special feature to make a bit more unique? Maybe you can load and replay famous games or something.
Improving the bot is an obvious feature… maybe:
- multiple rounds
- timers
- gambling on the game?
- moving by voice command
Needs something to set it apart and to impress. and/or very robust features that you would expect from a chess game.
Maybe you could build a full RPG around this chess interface.
1 Like
Thanks!
The game already kind of recognizes wins, but after a few seconds the win text resets to indicating the “turn” (which no longer exists)
As for the other suggestions, I’ll be happy to eventually implement them! (except gambling, unless you mean Chess960)
The RPG bit definetly sounds fun, too! Just like My Mandelbrot thing came from a fork of my Game of Life.
Nice work 
I played around with it for a few minutes and at one point, playing against the bot, it froze on its turn, when it had plenty of legal move options.
Another thing I noticed is that you’re allowed to play illegal moves, such as putting your own King in check. I haven’t fully explored other possible illegal moves but you’ll also need to ensure you’re careful about implementing castling as that can be a little thorny with illegal moves like castling through check etc.
If you need any advice or want me to test anything for you, let me know! I’ve never attempted to code a chess app but props to you for taking on the challenge. I’m a decent enough chess player though, so can offer help with that side of things if needed.
At some point, you might also want to include options for resignation, or forced draw by repetition, as there are certain cases where it’s impossible for either side to win and so you’ll get stuck otherwise. This also includes stalemates of course too.
Oh, that’s interesting! Is that because they are both filling in cells according to a criteria? You replaced the game of life rules with the Mandelbrot set equation to fill in the cells?
I think you might enjoy this book, A New Kind of Science by Stephan Wolfram, have you heard of it?
https://www.wolframscience.com/nks/