Discuss Scratch

Destructor_chess
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

coooolboy55 wrote:

ArnoHu wrote:

Connect 4 Bot Game Series

I am conducting a Connect 4 Bot test game series played by Game of Connect (GoC).

The results will be updated in this posting over time. They will cover the Scratch runtime and TurboWarp (TW only if an engine takes advantage of the additional performance there), with both sides as starting players once (as far as the projects allow). When several playing levels exist, games will be played on highest level available for the runtime.

The Bots


Scratch 3
Starting Side       Responding Side

GoC - CFAI (BirdRacer) 1 - 0 (win at ply 41)
GoC - C4AI (Spentine) 1 - 0 (win at ply 29)
GoC - C4AI-GL (PullJosh) 1 - 0 (win at ply 25)
GoC - OC4 (AKOS) 1 - 0 (win at ply 33)
GoC - OC4VC (ABC) 1 - 0 (win at ply 31)

CFAI (BirdRacer) - GoC 0.5 - 0.5
C4AI (Spentine) - GoC 0 - 1 (loss at ply 34)

TurboWarp
Starting Side       Responding Side

GoC - CFAI (BirdRacer) 1 - 0 (win at ply 31)
GoC - C4AI (Spentine) 1 - 0 (win at ply 39)

CFAI (BirdRacer) - GoC 0.5 - 0.5
C4AI (Spentine) - GoC 0 - 1 (loss at ply 42)

Note: GoC and BirdRacer's CFAI are think-time bound, hence not deterministic. They will play according to system speed (means, better on faster systems).

If you reply to this post, I suggest to link to it and remove the copied content, otherwise we will have outdated results copied over the forum. Here is the link to the original: https://scratch.mit.edu/discuss/post/8319884/
Will you be running another Connect 4 tournament?
I mean, if one day I do a connect 4 bot, I will.
waabooboo
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

Made some more adjustments to the search parameters, Wolverine's tactical play should be even stronger now.
coooolboy55
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

I have stopped working on my Chess AI. I really don't like creating it.
ArnoHu
Scratcher
1000+ posts

Scratch Chess Engine - Game of Kings

GoK Classic - Shallow Blue 3 NNUE, 89% vs. 86%:
https://lichess.org/study/PJTsaIt9/ZyFQaV9d

GoK Classic - Wolverine 2, 86% vs. 83%:
https://lichess.org/study/PJTsaIt9/vVV4YDrr

Last edited by ArnoHu (Dec. 4, 2025 10:38:27)

waabooboo
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

ArnoHu wrote:

GoK Classic - Shallow Blue 3 NNUE, 89% vs. 86%:
https://lichess.org/study/PJTsaIt9/ZyFQaV9d

GoK Classic - Wolverine 2 NNUE, 86% vs. 83%:
https://lichess.org/study/PJTsaIt9/vVV4YDrr

There's no Wolverine NNUE, unfortunately…
iceysnowman
Scratcher
68 posts

Scratch Chess Engine - Game of Kings

coooolboy55 wrote:

I have stopped working on my Chess AI. I really don't like creating it.
Noooooo! Too bad, it could have ended up really well. I at least hope you continue to work on your Connect 4 bot, it's a really nice project and it's pretty decent.
Destructor_chess
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

coooolboy55 wrote:

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 Destructor_chess (Dec. 4, 2025 15:56:43)

Hi_Pro20155
Scratcher
3 posts

Scratch Chess Engine - Game of Kings

when green flag clicked
wait (3) secs
wait (3) secs
Hi_Pro20155
Scratcher
3 posts

Scratch Chess Engine - Game of Kings

when green flag clicked
change [ v] by (Happy)
[/s[scratchblocks]
cratchblocks]
change [ v] by (sad)
[/scratchblocks]
coooolboy55
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

iceysnowman wrote:

coooolboy55 wrote:

I have stopped working on my Chess AI. I really don't like creating it.
Noooooo! Too bad, it could have ended up really well. I at least hope you continue to work on your Connect 4 bot, it's a really nice project and it's pretty decent.
I will keep working on that. There are many more features I can add.
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
coooolboy55
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

Destructor_chess wrote:

coooolboy55 wrote:

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.
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)

Last edited by coooolboy55 (Dec. 5, 2025 03:53:04)

Destructor_chess
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

coooolboy55 wrote:

Destructor_chess wrote:

coooolboy55 wrote:

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.
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)
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 lol
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


Last edited by ArnoHu (Today 06:40:30)

ArnoHu
Scratcher
1000+ posts

Scratch Chess Engine - Game of Kings

ArnoHu wrote:

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 (Today 06:40:22)

waabooboo
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

ArnoHu wrote:

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

waabooboo wrote:

ArnoHu wrote:

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

ArnoHu wrote:

waabooboo wrote:

ArnoHu wrote:

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 (Today 07:00:20)

ArnoHu
Scratcher
1000+ posts

Scratch Chess Engine - Game of Kings

waabooboo wrote:

ArnoHu wrote:

waabooboo wrote:

ArnoHu wrote:

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 (Today 07:20:12)

waabooboo
Scratcher
100+ posts

Scratch Chess Engine - Game of Kings

ArnoHu wrote:

waabooboo wrote:

ArnoHu wrote:

waabooboo wrote:

ArnoHu wrote:

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.

Powered by DjangoBB