AltME: REBOL3

Messages

GrahamC
Here's the opening sequence for the Ruy Lopez
move "e2-e4" move "e7-e5" move "g1-f3" move "b8-c6" move "c1-b5"
so the rebol words are functions that call a JS chess library to manipulate the dom
GrahamC
Maybe I should drop the "-" ?
GrahamC
or:
clear start for-each mv [ "e2-e4" "e7-e5" "g1-f3" "b8-c6" "c1-b5" ][move mv wait 1]
Oldes
Ok.. works in Chrome.
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

Last message posted 164 weeks ago.