AltME: REBOL3

Messages

GrahamC
Here's a chess demo
GrahamC
make sure your browser is setup correctly and supported by going here http://metaeducation.s3.amazonaws.com/index.html
Now either type
do <chess>
at the prompt, or go directly to my app by http://metaeducation.s3.amazonaws.com/index.html?do=chess
you can clear the board using "clear", setup a new board by "start", show a position eg. type "ruy-lopez"
GrahamC
to move, use the move command.
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

Last message posted 161 weeks ago.