Discuss Scratch
- Discussion Forums
- » Show and Tell
- » Scratch Chess Engine - Game of Kings
- iceysnowman
-
Scratcher
68 posts
Scratch Chess Engine - Game of Kings
Good to hear @coooolboy55! I will be keeping up with that!
Also I completely agree with Destructor-chess lol
Also I completely agree with Destructor-chess lol
- coooolboy55
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
Yes. I am planning to create one in a text-based programming language after learning one. (I don't know how that will turn out, as I usually set my goals too high)I have stopped working on my Chess AI. I really don't like creating it.Ah… You can ask others, I said that too many times. But well, chess programming is too much attractive, you'll see.
Last edited by coooolboy55 (Dec. 5, 2025 03:53:04)
- Destructor_chess
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
the problem with text based programming langages is that you need to understand the concept of magic bitboards if you want it to be competitive lolYes. I am planning to create one in a text-based programming language after learning one. (I don't know how that will turn out, as I usually set my goals too high)I have stopped working on my Chess AI. I really don't like creating it.Ah… You can ask others, I said that too many times. But well, chess programming is too much attractive, you'll see.
- ArnoHu
-
Scratcher
1000+ posts
Scratch Chess Engine - Game of Kings
GoK Classic vs. Wolverine 2, 87% vs. 90% (draw by stalemate after GoK lead, caused by endgame horizon effects due to check sequences and looming Wolverine promotion):
https://lichess.org/study/PJTsaIt9/iHyqy9jv
GoK Classic vs. Wolverine 2, 94% vs. 91%:
https://lichess.org/study/PJTsaIt9/ZBOc7qEL
GoK Classic vs. White Dove , 97% vs. 93%:
https://lichess.org/study/PJTsaIt9/zRVjzS92
GoK Classic vs. GoK NNUE , 91% vs. 97%:
https://lichess.org/study/PJTsaIt9/ZBOc7qEL
GoK NNUE vs. Black Crow, 98% vs. 92%:
https://lichess.org/study/PJTsaIt9/GODLGJ5F
https://lichess.org/study/PJTsaIt9/iHyqy9jv
GoK Classic vs. Wolverine 2, 94% vs. 91%:
https://lichess.org/study/PJTsaIt9/ZBOc7qEL
GoK Classic vs. White Dove , 97% vs. 93%:
https://lichess.org/study/PJTsaIt9/zRVjzS92
GoK Classic vs. GoK NNUE , 91% vs. 97%:
https://lichess.org/study/PJTsaIt9/ZBOc7qEL
GoK NNUE vs. Black Crow, 98% vs. 92%:
https://lichess.org/study/PJTsaIt9/GODLGJ5F
Last edited by ArnoHu (Dec. 7, 2025 06:40:30)
- ArnoHu
-
Scratcher
1000+ posts
Scratch Chess Engine - Game of Kings
GoK Classic vs. Wolverine 2, 87% vs. 90% (draw by stalemate after GoK lead, caused by endgame horizon effects due to check sequences and looming Wolverine promotion):
https://lichess.org/study/PJTsaIt9/iHyqy9jv
GoK Classic vs. Wolverine 2, 94% vs. 91%:
https://lichess.org/study/PJTsaIt9/ZBOc7qEL
GoK Classic vs. White Dove , 97% vs. 93%:
https://lichess.org/study/PJTsaIt9/zRVjzS92
GoK Classic vs. GoK NNUE , 91% vs. 97%:
https://lichess.org/study/PJTsaIt9/ZBOc7qEL
GoK NNUE vs. Black Crow, 98% vs. 92%:
https://lichess.org/study/PJTsaIt9/GODLGJ5F
Alternative ending for game #1 after adding extensions and preventing reductions on dangerous passed pawn pushes:
GoK Classic vs. Wolverine 2, 98% vs. 95%:
https://lichess.org/study/PJTsaIt9/UyHM8ytZ
Last edited by ArnoHu (Dec. 7, 2025 06:40:22)
- waabooboo
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
GoK Classic vs. Wolverine 2, 87% vs. 90% (draw by stalemate after GoK lead, caused by endgame horizon effects due to check sequences and looming Wolverine promotion):
https://lichess.org/study/PJTsaIt9/iHyqy9jv
87% vs 90% is pretty generous by Lichess, that game was a mess…
7r/2NP4/8/1PPk4/P7/6p1/1K6/8 b - - 2 70 Wolverine actually has a win here, Stockfish gives this crazy mating net with Kc4 Ne8 g2 d8=Q Rh2. I can't blame Wolverine for not finding that. But I will blame Wolverine for that atrocious opening play…
- ArnoHu
-
Scratcher
1000+ posts
Scratch Chess Engine - Game of Kings
GoK Classic vs. Wolverine 2, 87% vs. 90% (draw by stalemate after GoK lead, caused by endgame horizon effects due to check sequences and looming Wolverine promotion):
https://lichess.org/study/PJTsaIt9/iHyqy9jv
87% vs 90% is pretty generous by Lichess, that game was a mess…
7r/2NP4/8/1PPk4/P7/6p1/1K6/8 b - - 2 70 Wolverine actually has a win here, Stockfish gives this crazy mating net with Kc4 Ne8 g2 d8=Q Rh2. I can't blame Wolverine for not finding that. But I will blame Wolverine for that atrocious opening play…
And I thought only GoK Classic has opening issues

- waabooboo
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
GoK Classic vs. Wolverine 2, 87% vs. 90% (draw by stalemate after GoK lead, caused by endgame horizon effects due to check sequences and looming Wolverine promotion):
https://lichess.org/study/PJTsaIt9/iHyqy9jv
87% vs 90% is pretty generous by Lichess, that game was a mess…
7r/2NP4/8/1PPk4/P7/6p1/1K6/8 b - - 2 70 Wolverine actually has a win here, Stockfish gives this crazy mating net with Kc4 Ne8 g2 d8=Q Rh2. I can't blame Wolverine for not finding that. But I will blame Wolverine for that atrocious opening play…
And I thought only GoK Classic has opening issues
Ha, well Wolverine doesn't even have an opening book, probably it wouldn't hurt to add one. But I feel like a strong program should be able to figure out the opening on the fly – bad opening play is indicative of bad understanding more generally…
r1bqkr2/pp1npp2/3p2p1/3P2Pp/3R1Pn1/2N2Q2/PPP4P/2K2BNR w q - 1 14
I mean, this is silly stuff.
Last edited by waabooboo (Dec. 7, 2025 07:00:20)
- ArnoHu
-
Scratcher
1000+ posts
Scratch Chess Engine - Game of Kings
GoK Classic vs. Wolverine 2, 87% vs. 90% (draw by stalemate after GoK lead, caused by endgame horizon effects due to check sequences and looming Wolverine promotion):
https://lichess.org/study/PJTsaIt9/iHyqy9jv
87% vs 90% is pretty generous by Lichess, that game was a mess…
7r/2NP4/8/1PPk4/P7/6p1/1K6/8 b - - 2 70 Wolverine actually has a win here, Stockfish gives this crazy mating net with Kc4 Ne8 g2 d8=Q Rh2. I can't blame Wolverine for not finding that. But I will blame Wolverine for that atrocious opening play…
And I thought only GoK Classic has opening issues
Ha, well Wolverine doesn't even have an opening book, probably it wouldn't hurt to add one. But I feel like a strong program should be able to figure out the opening on the fly – bad opening play is indicative of bad understanding more generally…
r1bqkr2/pp1npp2/3p2p1/3P2Pp/3R1Pn1/2N2Q2/PPP4P/2K2BNR w q - 1 14
I mean, this is silly stuff.
OK, at least Classic finds a decent move at depth 5 (if that's what you mean?)
0.265: 5 : Search start, depth = 5
0.329: 5 : 90 : -266
0.335: 5 : 418 : -248
0.337: PV: [FEN "r1bqk2r/pp1npp2/3p2p1/3P2Pp/3R1Pn1/2N2Q2/PPP4P/2K2BNR b"] Qd8b6 Ng1e2 Nd7c5 h2h3 e7e5 d5e6 Nc5xe6
Last edited by ArnoHu (Dec. 7, 2025 07:20:12)
- waabooboo
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
GoK Classic vs. Wolverine 2, 87% vs. 90% (draw by stalemate after GoK lead, caused by endgame horizon effects due to check sequences and looming Wolverine promotion):
https://lichess.org/study/PJTsaIt9/iHyqy9jv
87% vs 90% is pretty generous by Lichess, that game was a mess…
7r/2NP4/8/1PPk4/P7/6p1/1K6/8 b - - 2 70 Wolverine actually has a win here, Stockfish gives this crazy mating net with Kc4 Ne8 g2 d8=Q Rh2. I can't blame Wolverine for not finding that. But I will blame Wolverine for that atrocious opening play…
And I thought only GoK Classic has opening issues
Ha, well Wolverine doesn't even have an opening book, probably it wouldn't hurt to add one. But I feel like a strong program should be able to figure out the opening on the fly – bad opening play is indicative of bad understanding more generally…
r1bqkr2/pp1npp2/3p2p1/3P2Pp/3R1Pn1/2N2Q2/PPP4P/2K2BNR w q - 1 14
I mean, this is silly stuff.
OK, at least Classic finds a decent move at depth 5 (if that's what you mean?)0.265: 5 : Search start, depth = 5
0.329: 5 : 90 : -266
0.335: 5 : 418 : -248
0.337: PV: [FEN "r1bqk2r/pp1npp2/3p2p1/3P2Pp/3R1Pn1/2N2Q2/PPP4P/2K2BNR b"] Qd8b6 Ng1e2 Nd7c5 h2h3 e7e5 d5e6 Nc5xe6
No, I mean the fact that this is black's position after 14 moves. All black's pieces still on the back rank, except for the knight on g4 which has been left to die.
GoK seems to navigate the openings just fine, I've never seen anything from it that approaches this level of strategical stupidity.
- ArnoHu
-
Scratcher
1000+ posts
Scratch Chess Engine - Game of Kings
GoK Classic vs. Wolverine 2, 87% vs. 90% (draw by stalemate after GoK lead, caused by endgame horizon effects due to check sequences and looming Wolverine promotion):
https://lichess.org/study/PJTsaIt9/iHyqy9jv
GoK Classic vs. Wolverine 2, 94% vs. 91%:
https://lichess.org/study/PJTsaIt9/ZBOc7qEL
GoK Classic vs. White Dove , 97% vs. 93%:
https://lichess.org/study/PJTsaIt9/zRVjzS92
GoK Classic vs. GoK NNUE, 91% vs. 97%:
https://lichess.org/study/PJTsaIt9/ZBOc7qEL
GoK NNUE vs. Black Crow, 98% vs. 92%:
https://lichess.org/study/PJTsaIt9/GODLGJ5F
Alternative ending for game #1 after adding extensions and preventing reductions on dangerous passed pawn pushes:
GoK Classic vs. Wolverine 2, 98% vs. 95%:
https://lichess.org/study/PJTsaIt9/UyHM8ytZ
GoK Classic vs. Shallow Blue 3 NNUE, 96% vs. 89%:
https://lichess.org/study/PJTsaIt9/IPgUIGTV
- coooolboy55
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
I was going to announce that you can use bitboards for Connect 4, but then I discovered ArnoHu already does.
- coooolboy55
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
Do you think a perfect Connect 4 AI will ever be possible on scratch?
- waabooboo
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
Do you think a perfect Connect 4 AI will ever be possible on scratch?
Well sure, it's a solved game after all. I could do it by adding an opening book to my Connect 4 program, if I had the time and the interest. Probably a few thousand memorized positions would be enough, and the proof number search would figure the rest out from there.
- coooolboy55
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
You should try if you are confident. It would be a huge achievement.Do you think a perfect Connect 4 AI will ever be possible on scratch?
Well sure, it's a solved game after all. I could do it by adding an opening book to my Connect 4 program, if I had the time and the interest. Probably a few thousand memorized positions would be enough, and the proof number search would figure the rest out from there.
- ArnoHu
-
Scratcher
1000+ posts
Scratch Chess Engine - Game of Kings
Do you think a perfect Connect 4 AI will ever be possible on scratch?
I highly doubt it. While perfect solutions have been implemented,they rely on a full-coverage opening book for the first moves, which is orders of magnitude larger than what would fit into a Scratch project.
- waabooboo
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
Do you think a perfect Connect 4 AI will ever be possible on scratch?
I highly doubt it. While perfect solutions have been implemented,they rely on a full-coverage opening book for the first moves, which is orders of magnitude larger than what would fit into a Scratch project.
Are we talking about a strong solution or a weak solution?
If the task is just “computer goes first and always wins”, that seems quite a bit easier than a full-coverage opening book that would solve any position, including ones that result from suboptimal play…
- coooolboy55
-
Scratcher
100+ posts
Scratch Chess Engine - Game of Kings
I forgot to specify that. I think a weak solution would be good enough for Scratch.Do you think a perfect Connect 4 AI will ever be possible on scratch?
I highly doubt it. While perfect solutions have been implemented,they rely on a full-coverage opening book for the first moves, which is orders of magnitude larger than what would fit into a Scratch project.
Are we talking about a strong solution or a weak solution?
If the task is just “computer goes first and always wins”, that seems quite a bit easier than a full-coverage opening book that would solve any position, including ones that result from suboptimal play…
- ArnoHu
-
Scratcher
1000+ posts
Scratch Chess Engine - Game of Kings
GoK NNUE vs. Black Crow, 97% vs. 90%:
https://lichess.org/study/PJTsaIt9/C8DKkH6w
GoK Classic vs. Wolverine 2, 97% vs. 92%:
https://lichess.org/study/PJTsaIt9/gDzJWeCE
https://lichess.org/study/PJTsaIt9/C8DKkH6w
GoK Classic vs. Wolverine 2, 97% vs. 92%:
https://lichess.org/study/PJTsaIt9/gDzJWeCE
- ArnoHu
-
Scratcher
1000+ posts
Scratch Chess Engine - Game of Kings
GoK NNUE vs. Black Crow, 97% vs. 90%:
https://lichess.org/study/PJTsaIt9/C8DKkH6w
GoK Classic vs. Wolverine 2, 97% vs. 92%:
https://lichess.org/study/PJTsaIt9/gDzJWeCE
GoK Classic vs. Wolverine 2, 92% vs. 92%:
https://lichess.org/study/PJTsaIt9/lfmhkwvB
GoK Classic vs. Shallow Blue 3 NNUE, 93% vs. 88%:
https://lichess.org/study/PJTsaIt9/WQo6VfpY
GoK NNUE vs. Black Crow, 97% vs. 88%:
https://lichess.org/study/PJTsaIt9/Bjdy1LVl
GoK NNUE vs. Black Crow, 98% vs. 94%:
https://lichess.org/study/PJTsaIt9/IsvL36xE
GoK NNUE vs. Chess.com Maximum Bot 25 (3200), 92% vs. 97%:
https://lichess.org/study/PJTsaIt9/Cp6Do71r
GoK Classic vs. Wolverine 2, 93% vs. 90%:
https://lichess.org/study/PJTsaIt9/hO79upib
GoK Classic vs. Wolverine 2, 96% vs. 93%:
https://lichess.org/study/PJTsaIt9/acpV6Ocy
GoK Classic vs. White Dove, 94% vs. 90%:
https://lichess.org/study/PJTsaIt9/8HMx8PlX
GoK Classic vs. Delta, 88% vs. 88%:
https://lichess.org/study/PJTsaIt9/vZzIwlpH
Last edited by ArnoHu (Today 00:01:49)
- Discussion Forums
- » Show and Tell
-
» Scratch Chess Engine - Game of Kings