Discuss Scratch
- Discussion Forums
- » Show and Tell
- » Scratch Chess Engine - Game of Kings
- qwertycodechamp90411
-
100+ posts
Scratch Chess Engine - Game of Kings
When that gets fixed I'll try GoK against FStockfish with 2 kings (to see how it goes at unorthodox chess). I have played a few games against it before but it always finds a way to skewer my two kings or something lolSomething I thought of, it would be nice to be able to disable castling in the FEN import on GoK
Yes, a known issue, will fix it soon.
- birdracerthree
-
1000+ posts
Scratch Chess Engine - Game of Kings
Unfortunately, I believe that GoK does not support these types of game. However, I believe White Dove HCE handles these very well. Where we you finding these Stockfish variants?When that gets fixed I'll try GoK against FStockfish with 2 kings (to see how it goes at unorthodox chess). I have played a few games against it before but it always finds a way to skewer my two kings or something lolSomething I thought of, it would be nice to be able to disable castling in the FEN import on GoK
Yes, a known issue, will fix it soon.
- qwertycodechamp90411
-
100+ posts
Scratch Chess Engine - Game of Kings
1) It does with a FEN importUnfortunately, I believe that GoK does not support these types of game. However, I believe White Dove HCE handles these very well. Where we you finding these Stockfish variants?When that gets fixed I'll try GoK against FStockfish with 2 kings (to see how it goes at unorthodox chess). I have played a few games against it before but it always finds a way to skewer my two kings or something lolSomething I thought of, it would be nice to be able to disable castling in the FEN import on GoK
Yes, a known issue, will fix it soon.
2) https://fairyground.vercel.app/advanced.html
Create a text file with the following contents
[cfour]
maxRank = 6
maxFile = 7
immobile = p
startFen = 7/7/7/7/7/7[PPPPPPPPPPPPPPPPPPPPPppppppppppppppppppppp] w - - 0 1
pieceDrops = true
enclosingDrop = top
doubleStep = false
castling = false
stalemateValue = draw
immobilityIllegal = false
connectN = 4
nMoveRule = 0
Then on the website, click ‘choose file’ next to variants.ini on the top of the page
The select Connect 4 in the dropdown next to “Name”
For the 2 kings variant, import the following
[twokings:extinction]
startFen = rnbkkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBKKBNR
extinctionPieceTypes = k
extinctionPieceCount = 1
extinctionPseudoRoyal = true
All functions: https://github.com/fairy-stockfish/Fairy-Stockfish/blob/master/src/variants.ini
To create your own pieces, use Betza notation: https://www.gnu.org/software/xboard/Betza.html
Example: No double step pawn is fmWfcF (fm - forward move, W - 1 square orthogonally, fc - forward capture, F - 1 square diagonally i.e. move forward 1 square, capture 1 square diagonally)
Lowercase letters are for directions (f = forward, b = backward, etc.) or move/capture (m = only move, not capture, c = capture only). Uppercase is for the actual movement (e.g. N = Knight, F = 1 square diagonally, F0 = B = as far as you want diagonally, F2 = 1 or 2 squares diagonally)
I believe the X-Board specific ones work on the website (I've seen i used).
Last edited by qwertycodechamp90411 (Jan. 7, 2025 21:57:05)
- qwertycodechamp90411
-
100+ posts
Scratch Chess Engine - Game of Kings
Is there any way to get these scratch bots a bot account on lichess.org?
- qwertycodechamp90411
-
100+ posts
Scratch Chess Engine - Game of Kings
Also how do you get your rating approximations for your chess engines?
- ababoin07
-
500+ posts
Scratch Chess Engine - Game of Kings
How do you get means you would like know that, or you mean how to calculate it? It’s base with a looooot of game between the s chess engines, but it’s approximative… Also how do you get your rating approximations for your chess engines?
- qwertycodechamp90411
-
100+ posts
Scratch Chess Engine - Game of Kings
Which chess engines do you match the bot against?How do you get means you would like know that, or you mean how to calculate it? It’s base with a looooot of game between the s chess engines, but it’s approximative… Also how do you get your rating approximations for your chess engines?
- AZURUS41
-
100+ posts
Scratch Chess Engine - Game of Kings
https://lichess.org/7BiA220h#0
LA on the verge of winning to Verde ! Except it's LA…
1.88, which includes a new book, allowed the engine to reach its all-time highest nps on an endgame with sliding pieces : 165039 nps, for a total of 3.3 nodes in only 20 seconds !
Now I need to way to prevent stalemate
LA on the verge of winning to Verde ! Except it's LA…
1.88, which includes a new book, allowed the engine to reach its all-time highest nps on an endgame with sliding pieces : 165039 nps, for a total of 3.3 nodes in only 20 seconds !
Now I need to way to prevent stalemate

- ababoin07
-
500+ posts
Scratch Chess Engine - Game of Kings
https://lichess.org/7BiA220h#0I don't understand “165039 nps, for a total of 3.3 nodes in only 20 seconds”…
LA on the verge of winning to Verde ! Except it's LA…
1.88, which includes a new book, allowed the engine to reach its all-time highest nps on an endgame with sliding pieces : 165039 nps, for a total of 3.3 nodes in only 20 seconds !
Now I need to way to prevent stalemate
- WhiteDoveOfficial
-
25 posts
Scratch Chess Engine - Game of Kings
https://lichess.org/7BiA220h#0I don't understand “165039 nps, for a total of 3.3 nodes in only 20 seconds”…
LA on the verge of winning to Verde ! Except it's LA…
1.88, which includes a new book, allowed the engine to reach its all-time highest nps on an endgame with sliding pieces : 165039 nps, for a total of 3.3 nodes in only 20 seconds !
Now I need to way to prevent stalemate
I'm assuming that it's supposed to be 3.3M nodes in only 20 seconds.
(165039 nodes/seconds * 20 seconds = 3,300,780 nodes)
- ababoin07
-
500+ posts
Scratch Chess Engine - Game of Kings
Oh!!!! Yeah, it makes sensehttps://lichess.org/7BiA220h#0I don't understand “165039 nps, for a total of 3.3 nodes in only 20 seconds”…
LA on the verge of winning to Verde ! Except it's LA…
1.88, which includes a new book, allowed the engine to reach its all-time highest nps on an endgame with sliding pieces : 165039 nps, for a total of 3.3 nodes in only 20 seconds !
Now I need to way to prevent stalemate
I'm assuming that it's supposed to be 3.3M nodes in only 20 seconds.
(165039 nodes/seconds * 20 seconds = 3,300,780 nodes)
- AZURUS41
-
100+ posts
Scratch Chess Engine - Game of Kings
Oh yeah indeed, I forgot the “M”.Oh!!!! Yeah, it makes sensehttps://lichess.org/7BiA220h#0I don't understand “165039 nps, for a total of 3.3 nodes in only 20 seconds”…
LA on the verge of winning to Verde ! Except it's LA…
1.88, which includes a new book, allowed the engine to reach its all-time highest nps on an endgame with sliding pieces : 165039 nps, for a total of 3.3 nodes in only 20 seconds !
Now I need to way to prevent stalemate
I'm assuming that it's supposed to be 3.3M nodes in only 20 seconds.
(165039 nodes/seconds * 20 seconds = 3,300,780 nodes)
Still impressive numbers over here !
Other LA - Verde game, this time LA wins due to almost perfect play (and also Verde doesn't hendle en passant bruh) : https://lichess.org/dxVKxjYR#0
About the rankings, I think Verde will be put down to 7th place below ECE.
- ababoin07
-
500+ posts
Scratch Chess Engine - Game of Kings
Really cool! I ́m currently working on a completly new chess engine (NNUE (768+x (x<15), 128, 64, 1), non-list use for the minimax, NO str on the code (on the AI, not on the fen handling, yeah…)…)Oh yeah indeed, I forgot the “M”.Oh!!!! Yeah, it makes sensehttps://lichess.org/7BiA220h#0I don't understand “165039 nps, for a total of 3.3 nodes in only 20 seconds”…
LA on the verge of winning to Verde ! Except it's LA…
1.88, which includes a new book, allowed the engine to reach its all-time highest nps on an endgame with sliding pieces : 165039 nps, for a total of 3.3 nodes in only 20 seconds !
Now I need to way to prevent stalemate
I'm assuming that it's supposed to be 3.3M nodes in only 20 seconds.
(165039 nodes/seconds * 20 seconds = 3,300,780 nodes)
Still impressive numbers over here !
Other LA - Verde game, this time LA wins due to almost perfect play (and also Verde doesn't hendle en passant bruh) : https://lichess.org/dxVKxjYR#0
About the rankings, I think Verde will be put down to 7th place below ECE.
Last edited by ababoin07 (Jan. 8, 2025 17:51:28)
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
Is there any way to get these scratch bots a bot account on lichess.org?
Possibly, but I don't think anyone has done that yet. Best chance IMHO is TurboWarp with a TW extension.
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
Also how do you get your rating approximations for your chess engines?
There is an outdated ranking which was created using the BayesELO tool and 60+ Scratch chess engine games: https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/post/8074502/
Last edited by ArnoHu (Jan. 8, 2025 23:54:02)
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
The Connect-4 Engine Studio can be found here: https://scratch-mit-edu.ezproxyberklee.flo.org/studios/36106829/
- lucastezino
-
53 posts
Scratch Chess Engine - Game of Kings
what???Really cool! I ́m currently working on a completly new chess engine (NNUE (768+x (x<15), 128, 64, 1), non-list use for the minimax, NO str on the code (on the AI, not on the fen handling, yeah…)…)Oh yeah indeed, I forgot the “M”.Oh!!!! Yeah, it makes sensehttps://lichess.org/7BiA220h#0I don't understand “165039 nps, for a total of 3.3 nodes in only 20 seconds”…
LA on the verge of winning to Verde ! Except it's LA…
1.88, which includes a new book, allowed the engine to reach its all-time highest nps on an endgame with sliding pieces : 165039 nps, for a total of 3.3 nodes in only 20 seconds !
Now I need to way to prevent stalemate
I'm assuming that it's supposed to be 3.3M nodes in only 20 seconds.
(165039 nodes/seconds * 20 seconds = 3,300,780 nodes)
Still impressive numbers over here !
Other LA - Verde game, this time LA wins due to almost perfect play (and also Verde doesn't hendle en passant bruh) : https://lichess.org/dxVKxjYR#0
About the rankings, I think Verde will be put down to 7th place below ECE.
- lucastezino
-
53 posts
Scratch Chess Engine - Game of Kings
https://scratch-mit-edu.ezproxyberklee.flo.org/studios/36106829/The Connect-4 Engine Studio can be found here:
when this sprite clicked
change [v] by ([sqrt] of ((6) * (50))::operators)
- ArnoHu
-
1000+ posts
Scratch Chess Engine - Game of Kings
GoK Classic (Medium, white) vs. Delta (15s), 93% vs. 90%:
https://lichess.org/2W9J4RnE#141
GoK Classic (Medium, white) vs. White Dove (P2), 94% vs. 89%:
https://lichess.org/WlTeIsZ3#131
https://lichess.org/2W9J4RnE#141
GoK Classic (Medium, white) vs. White Dove (P2), 94% vs. 89%:
https://lichess.org/WlTeIsZ3#131
- ababoin07
-
500+ posts
Scratch Chess Engine - Game of Kings
Please 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)
- Discussion Forums
- » Show and Tell
-
» Scratch Chess Engine - Game of Kings