Discuss Scratch

dascoolguy-
Scratcher
66 posts

Chess engine extension for turbowarp

Hello there everyone, I am attempting to create a turbowarp extension and was told to come to this forum. The concept is to put a FEN into a block like this:
getmove[rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR]:: operators reporter
And use the stockfish.js program to get an output such as “e4” or something along the lines of that.
The initial plan was to paste the stockfish.js code directly into the extension, however I have no idea what functions do what in the code, and therefore don't know what functions to reference and run in order to make this work.

However, I do not know how to create turbowarp extensions. If someone could help me with this matter, it would be much appreciated.

Last edited by dascoolguy- (March 22, 2024 03:47:08)

Mr_rudy
Scratcher
100+ posts

Chess engine extension for turbowarp

the turbowarp devs wrote a whole documentation for custom extensions here
graft_129012
Scratcher
2 posts

Chess engine extension for turbowarp

by graft_129012
when checked, [ v] 
move () to ()
set [ v] to move
set [ v] in files[ v]
(Files contains ()

Last edited by graft_129012 (May 18, 2024 09:02:43)

graft_129012
Scratcher
2 posts

Chess engine extension for turbowarp

graft_129012 wrote:

by graft_129012

when checked, [ v] 

move () to ()
set [ v] to move
set [ v] in files[ v]
(Files contains ()
meunspeakable
Scratcher
100+ posts

Chess engine extension for turbowarp

Edit: Sorry. didn't realize it was a necropost.
You can use a publicly available Web-API. Instructions to do so:
1. get the “Fetch” and “JSON” extensions in turbowarp


2. Create code to request and interpret the data:

Last edited by meunspeakable (May 18, 2024 17:50:03)

dynamicsofscratch
Scratcher
1000+ posts

Chess engine extension for turbowarp

reported to be closed to avoid necroposting
julmik6478
Scratcher
500+ posts

Chess engine extension for turbowarp

You can use extension creators.
dascoolguy-
Scratcher
66 posts

Chess engine extension for turbowarp

dynamicsofscratch wrote:

reported to be closed to avoid necroposting
I'm still looking for further help on the situation and don't appreciate that you've reported this discussion.

Last edited by dascoolguy- (May 22, 2024 23:09:51)

BigNate469
Scratcher
1000+ posts

Chess engine extension for turbowarp

dascoolguy- wrote:

dynamicsofscratch wrote:

reported to be closed to avoid necroposting
I'm still looking for further help on the situation and don't appreciate that you've reported this discussion.
It hasn't been closed yet, so it likely won't.
I would check out the Turbowarp documentation linked in post #2.
dascoolguy-
Scratcher
66 posts

Chess engine extension for turbowarp

meunspeakable wrote:

Edit: Sorry. didn't realize it was a necropost.
You can use a publicly available Web-API. Instructions to do so:
1. get the “Fetch” and “JSON” extensions in turbowarp


2. Create code to request and interpret the data:
I tried your method, however it provides complex notation that I cannot translate easily into moves the project I am using can understand. (Mainly, because it has notations like “Bd4”, which as you can see, lack the coordinates of the bishop and simply order you to move a bishop to D4).

I want it to provide these values:

(number from 1-64), (number from 1-64), (number from 0-164)

first number: coordinates of selected piece

second number: square that piece wants to move to

third number: (see list below)

0: None
1-8: Column in which a pawn moves 2 squares forward (indicating en-passant possibilities)
11-14: Castling (KQkq)
21-24: Promoting piece (Queen-Knight-Rook-Bishop)
101-164: Taken piece (square number) with en-passant

Is this possible?

Last edited by dascoolguy- (May 23, 2024 05:45:41)

julmik6478
Scratcher
500+ posts

Chess engine extension for turbowarp

dynamicsofscratch wrote:

reported to be closed to avoid necroposting
I think that you should ask to close before reporting.
julmik6478
Scratcher
500+ posts

Chess engine extension for turbowarp

meunspeakable wrote:

Edit: Sorry. didn't realize it was a necropost.
You can use a publicly available Web-API. Instructions to do so:
1. get the “Fetch” and “JSON” extensions in turbowarp


2. Create code to request and interpret the data:
I think that you can do it beeter using custom reporters
return ()::#FF6680 cap 
Instead of
set [return v] to []

Last edited by julmik6478 (May 23, 2024 13:15:35)

dascoolguy-
Scratcher
66 posts

Chess engine extension for turbowarp

julmik6478 wrote:

meunspeakable wrote:

Edit: Sorry. didn't realize it was a necropost.
You can use a publicly available Web-API. Instructions to do so:
1. get the “Fetch” and “JSON” extensions in turbowarp


2. Create code to request and interpret the data:
I think that you can do it beeter using custom reporters
return ()::#FF6680 cap 
Instead of
set [return v] to []
Thank you, however I am still looking for a chess API that produces data in the format I provided.
I should also point out that there is a wide selection of boards that when fed into the chess engine you provided, return a status of “unknown”, meaning that it does not know what move to return.

Last edited by dascoolguy- (May 24, 2024 02:05:52)

julmik6478
Scratcher
500+ posts

Chess engine extension for turbowarp

I think that this post should be here. Can I report it to be moved?
dascoolguy-
Scratcher
66 posts

Chess engine extension for turbowarp

julmik6478 wrote:

I think that this post should be here. Can I report it to be moved?
This post is not about a chess extension anymore, as a solution to remove the need for the creation of one has been found.
This is about finding a chess API now.
dynamicsofscratch
Scratcher
1000+ posts

Chess engine extension for turbowarp

dascoolguy- wrote:

(#8)

dynamicsofscratch wrote:

reported to be closed to avoid necroposting
I'm still looking for further help on the situation and don't appreciate that you've reported this discussion.
i don't think i ended up reporting it because i saw the post date

Powered by DjangoBB