Discuss Scratch
- Discussion Forums
- » Show and Tell
- » Scratch Chess Engine - Game of Kings
- Love_Mode
-
4 posts
Scratch Chess Engine - Game of Kings
he's 5 years old and might not understand this messagePlease don’t spam this kind of messagehttps://scratch-mit-edu.ezproxyberklee.flo.org/studios/36106829/The Connect-4 Engine Studio can be found here:when this sprite clickedchange [v] by ([sqrt] of ((6) * (50))::operators)
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
he's 5 years old and might not understand this messagePlease don’t spam this kind of messagehttps://scratch-mit-edu.ezproxyberklee.flo.org/studios/36106829/The Connect-4 Engine Studio can be found here:when this sprite clickedchange [v] by ([sqrt] of ((6) * (50))::operators)
From https://en.scratch-wiki.info/wiki/Creating_an_Account :
Starting on November 6th, 2024, users under the age of 16 must give a parent's email address which must be confirmed by the parent. Even without confirmation, Scratch projects can be created and saved; however, social actions can not be done.
Forum usage is part of “social actions”.
- ababoin07
-
500+ posts
Scratch Chess Engine - Game of Kings
Yeah, but please try to make he can't send messages on it….he's 5 years old and might not understand this messagePlease don’t spam this kind of messagehttps://scratch-mit-edu.ezproxyberklee.flo.org/studios/36106829/The Connect-4 Engine Studio can be found here:when this sprite clickedchange [v] by ([sqrt] of ((6) * (50))::operators)
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
An improved GoK Classic version has just been published!
Three test games against the next engines in the ranking:
GoK Classic (Medium, white) - White Dove (P2), GoK wins with 99% vs. 91% accuracy:
https://lichess.org/8IR5q68B#95
GoK Classic (Medium, white) - Delta (15s), GoK wins with 95% vs.84% accuracy:
https://lichess.org/8sKB2INv#81
GoK Classic (Medium, white) - White Dove NNUE (P2), GoK wins with 97% vs. 87% accuracy:
https://lichess.org/fk5h6zfX#77
In three games overall, GoK made 4 inaccuracies, 0 mistakes and 0 blunders.
Three test games against the next engines in the ranking:
GoK Classic (Medium, white) - White Dove (P2), GoK wins with 99% vs. 91% accuracy:
https://lichess.org/8IR5q68B#95
GoK Classic (Medium, white) - Delta (15s), GoK wins with 95% vs.84% accuracy:
https://lichess.org/8sKB2INv#81
GoK Classic (Medium, white) - White Dove NNUE (P2), GoK wins with 97% vs. 87% accuracy:
https://lichess.org/fk5h6zfX#77
In three games overall, GoK made 4 inaccuracies, 0 mistakes and 0 blunders.
Last edited by ArnoHu (Jan. 11, 2025 07:15:45)
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
GoK Classic version has just been published!An improved
Three test games against the next engines in the ranking:
GoK Classic (Medium, white) - White Dove (P2), GoK wins with 99% vs. 91% accuracy:
https://lichess.org/8IR5q68B#95
GoK Classic (Medium, white) - Delta (15s), GoK wins with 95% vs.84% accuracy:
https://lichess.org/8sKB2INv#81
GoK Classic (Medium, white) - White Dove NNUE (P2), GoK wins with 97% vs. 87% accuracy:
https://lichess.org/fk5h6zfX#77
In three games overall, GoK made 4 inaccuracies, 0 mistakes and 0 blunders.
A larger number of automated test games (thanks to @FastSkript for the Delta CLI matchup mode) enabled further improvements in GoK Classic 6.729.
GoK Classic (Medium, white) - Delta (15s), GoK wins with 98% vs.90% accuracy:
https://lichess.org/YXBYBOd5#93
- birdracerthree
-
1000+ posts
Scratch Chess Engine - Game of Kings
I have heard that the CLI was not designed for use of other engine’s. Are there any instructions to implement the CLI?GoK Classic version has just been published!An improved
Three test games against the next engines in the ranking:
GoK Classic (Medium, white) - White Dove (P2), GoK wins with 99% vs. 91% accuracy:
https://lichess.org/8IR5q68B#95
GoK Classic (Medium, white) - Delta (15s), GoK wins with 95% vs.84% accuracy:
https://lichess.org/8sKB2INv#81
GoK Classic (Medium, white) - White Dove NNUE (P2), GoK wins with 97% vs. 87% accuracy:
https://lichess.org/fk5h6zfX#77
In three games overall, GoK made 4 inaccuracies, 0 mistakes and 0 blunders.
A larger number of automated test games (thanks to @FastSkript for the Delta CLI matchup mode) enabled further improvements in GoK Classic 6.729.
GoK Classic (Medium, white) - Delta (15s), GoK wins with 98% vs.90% accuracy:
https://lichess.org/YXBYBOd5#93
- AZURUS41
-
100+ posts
Scratch Chess Engine - Game of Kings
https://lichess.org/79n8J9Np#0
Verde vs LA 1.92 BETA, actually trying to implement a (working) TT (only lower and upper bounds to add now).
Hasi your engine has to be the luckiest engine of all time what is that
Verde vs LA 1.92 BETA, actually trying to implement a (working) TT (only lower and upper bounds to add now).
Hasi your engine has to be the luckiest engine of all time what is that

- AZURUS41
-
100+ posts
Scratch Chess Engine - Game of Kings
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1119604521/
Why is this version (with lower and upper bounds supposedly working) having exactly the same number of nodes / depth that the version I shared sooner in the day and that wasn't having them at all ?
I'll ask on the alternative server soon but I let this here in case anyone finds something
Why is this version (with lower and upper bounds supposedly working) having exactly the same number of nodes / depth that the version I shared sooner in the day and that wasn't having them at all ?
I'll ask on the alternative server soon but I let this here in case anyone finds something
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
UCI-generated test game series, GoK Classic vs. Delta:
https://lichess.org/study/GPPVjegY
GoK Classic (Medium, white) vs. White Dove (P2), high accuracy game, 96% vs. 93%:
https://lichess.org/rh5d3E2Z
GoK Classic (Medium, black) vs. Element (6+8), 94% vs. 90%:
https://lichess.org/jeQP2cEV#110
GoK Classic (Medium, white) vs. Shallow Blue, 98% vs. 91%:
https://lichess.org/aVblftWx#93
GoK Classic (Medium, black) vs. White Dove NNUE (P2), 95% vs. 91%:
https://lichess.org/Mo56UVJ7#174
GoK Classic (10sec, black) vs. LA Chess, 94% vs. 82%:
https://lichess.org/TO2yNBqo#60
https://lichess.org/study/GPPVjegY
GoK Classic (Medium, white) vs. White Dove (P2), high accuracy game, 96% vs. 93%:
https://lichess.org/rh5d3E2Z
GoK Classic (Medium, black) vs. Element (6+8), 94% vs. 90%:
https://lichess.org/jeQP2cEV#110
GoK Classic (Medium, white) vs. Shallow Blue, 98% vs. 91%:
https://lichess.org/aVblftWx#93
GoK Classic (Medium, black) vs. White Dove NNUE (P2), 95% vs. 91%:
https://lichess.org/Mo56UVJ7#174
GoK Classic (10sec, black) vs. LA Chess, 94% vs. 82%:
https://lichess.org/TO2yNBqo#60
Last edited by ArnoHu (Jan. 16, 2025 06:12:26)
- thingbaijam
-
4 posts
Scratch Chess Engine - Game of Kings
hey Arnohu where to you keep the opening in your massive chess engine?
and how it you make it
also were are the different types open game,sillcion , French etc
and how it you make it
also were are the different types open game,sillcion , French etc
- ababoin07
-
500+ posts
Scratch Chess Engine - Game of Kings
GoK stores, i guess, like a chain of moves (like e2e4e7e5g1f3 but like int,and compressed…) but if you want to do a chess engine, you can ise str before, its easier and i think opening book czn be unoptilized on a chess engine… hey Arnohu where to you keep the opening in your massive chess engine?
and how it you make it
also were are the different types open game,sillcion , French etc
- birdracerthree
-
1000+ posts
Scratch Chess Engine - Game of Kings
GoK’s opening book is not compressed. It is simply a chain of moves written with GoK’s move representation. An example of an opening line I have suggested is 533713296346021958430722523629364636223743370413544612286226031226191019GoK stores, i guess, like a chain of moves (like e2e4e7e5g1f3 but like int,and compressed…) but if you want to do a chess engine, you can ise str before, its easier and i think opening book czn be unoptilized on a chess engine… hey Arnohu where to you keep the opening in your massive chess engine?
and how it you make it
also were are the different types open game,sillcion , French etc
That gives the line 1. e4 e5 2. Nf3 Nc6 3. Nc3 Nf6 4. d4 exd4 5. Nxd4 Nxe4 6. Nxe4 Qe7 7. f3 d5 8. Bb5 Bd7 9. Bxc6 bxc6
However, GoK’s opening book also supports transpositions (somehow). I do not know how that is done.
- thingbaijam
-
4 posts
Scratch Chess Engine - Game of Kings
just have to wait for Arnono to reply.
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
hey Arnohu where to you keep the opening in your massive chess engine?
and how it you make it
also were are the different types open game,sillcion , French etc
Hi,
the openings are kept in a list, in a format that @ababoin07 and @birdracerthree already have described. You can find the data in the InitOpeningBook() custom block.
And as mentioned in the Notes and Credits:
Opening Book by @Grijfland (thanks a ton, that was a lot of work!)
- birdracerthree
-
1000+ posts
Scratch Chess Engine - Game of Kings
As I see that there is now a chess and checkers featured studio, I would like to ask
1. How do I add en passant?
2. How to I improve my UI?
1. How do I add en passant?
2. How to I improve my UI?
- AZURUS41
-
100+ posts
Scratch Chess Engine - Game of Kings
LA 1.93, with most of the TT cutoffs (except exact ones) and multiple UI changes (opp pieces not clickable, message for game ended by checkmate) obliterates Verde with almost perfect play before LAing so hard I fell off my chair : https://lichess.org/HFkfViKk
GG overall, LA eally improved a lot with this last update and might now be back to winning LA - SB games. I'll also fix a bug concerning incorrect TTcalls count who were really slow because it only +1ed when it was an exact bound.
GG overall, LA eally improved a lot with this last update and might now be back to winning LA - SB games. I'll also fix a bug concerning incorrect TTcalls count who were really slow because it only +1ed when it was an exact bound.
Last edited by AZURUS41 (Jan. 17, 2025 10:02:46)
- AZURUS41
-
100+ posts
Scratch Chess Engine - Game of Kings
Also, thanks to the UI changes I decided LA was a candidate for the check and checkers studio 
Ehm, about the game, verde also thought there was a checkmate when it was only a stalemate… is that normal?

Ehm, about the game, verde also thought there was a checkmate when it was only a stalemate… is that normal?
- qwertycodechamp90411
-
100+ posts
Scratch Chess Engine - Game of Kings
I'm working on my own bot, the way I'm adding it is to As I see that there is now a chess and checkers featured studio, I would like to ask
1. How do I add en passant?
2. How to I improve my UI?
1) Store En-Passant Target (if pawn moved 2 squares then set target to square - 10 (square + 10 for black))
2) If pawn on (enPassantTarget - 11 or enPassantTarget + 9) (enPassantTarget - 9 or enPassantTarget + 11 for black) then add enPassantTarget to legal moves
3) If endMove == enPassantTarget then remove piece from enPassantTarget + 10 (enPassantTarget - 10 for black))
Numbers assume notation in the form (21 is b1, 67 is f7, etc.)
Last edited by qwertycodechamp90411 (Jan. 18, 2025 01:04:36)
- TSFSR
-
0 posts
Scratch Chess Engine - Game of Kings
wat
when I receive [ brain v]
broadcast [error v]
Last edited by TSFSR (Jan. 18, 2025 17:12:30)
- ababoin07
-
500+ posts
Scratch Chess Engine - Game of Kings
watwhen I receive [ brain v]
broadcast [error v]
when I receive [spam random messages]
broadcast [will be banned?]
Last edited by ababoin07 (Jan. 18, 2025 18:11:46)
- Discussion Forums
- » Show and Tell
-
» Scratch Chess Engine - Game of Kings