AltME: REBOL3

Messages

Oldes
But it is cheating a little bit as the chess are written in JavaScript https://github.com/oakmac/chessboardjs/
GrahamC
huh?  This is rebol javascript integration.  All the graphics have to be done in JS.
Bo
That's really cool. Now I have to find some time to look at the source code.

GrahamC
I have this FAQ for those wanting to get started https://github.com/hostilefork/replpad-js/wiki/Basic---Getting-started
Bo
>>  source move
move: make action! [ [
    chess-move [text!] "use chess notation"
]...native code, no source available...
I'll check out the FAQ. Thanks.
GrahamC
GrahamC
Ok, try this once your browser is working
http://metaeducation.s3.amazonaws.com/index.html?do=chess
and type
chiu-vs-jensen
forget about the "ss" which is a typo
a game of mine from over 40 years ago which I found on the net

GrahamC
Here's a little homage experiment
What happens is that the JS looks for a file startup-sequence.reb and if it finds it executes it.  This gives a table of downloads to renc binaries. Click on a link and it gives you the url to the latest binary for that OS tuple.

GrahamC
move the board out of the way, and then you can start typing chess moves
eg.  e2 e4 e7 e5 g1 f3 etc
Have yet to implement castling, en passant and pawn promotion
so the console has a hook that allows me to parse out chess moves and instead of sending them to the interpreter moves the pieces instead
eFishAnt
sweet chess game

Bo
Just got to play with the demo. Super neat!

GrahamC
Now has pawn promotion, castling and en passant in my Rebol Javascript Wasm chess interpreter

Last message posted 164 weeks ago.