AltME: REBOL3
Messages
Thursday 18th April, 2019
GrahamC
22:44
Now either type
do <chess>
at the prompt, or go directly to my app by
http://metaeducation.s3.amazonaws.com/index.html?do=chess
22:45
you can clear the board using "clear", setup a new board by "start", show a position eg. type "ruy-lopez"
GrahamC
22:51
to move, use the move command.
22:51
Here's the opening sequence for the Ruy Lopez
move "e2-e4" move "e7-e5" move "g1-f3" move "b8-c6" move "c1-b5"
22:52
so the rebol words are functions that call a JS chess library to manipulate the dom
GrahamC
22:57
Maybe I should drop the "-" ?
GrahamC
23:01
or:
clear start for-each mv [ "e2-e4" "e7-e5" "g1-f3" "b8-c6" "c1-b5" ][move mv wait 1]
Oldes
23:05
Ok.. works in Chrome.
Oldes
23:10
But it is cheating a little bit as the chess are written in JavaScript
https://github.com/oakmac/chessboardjs/
GrahamC
23:33
huh? This is rebol javascript integration. All the graphics have to be done in JS.
Bo
23:55
That's really cool. Now I have to find some time to look at the source code.
Friday 19th April, 2019
GrahamC
00:01
I have this FAQ for those wanting to get started
https://github.com/hostilefork/replpad-js/wiki/Basic---Getting-started
Bo
00:05
>> source move
move: make action! [ [
chess-move [text!] "use chess notation"
]...native code, no source available...
00:05
I'll check out the FAQ. Thanks.
GrahamC
00:13
source is here
https://gitlab.com/Zhaoshirong/rebol-chess/blob/master/create-board.reb
GrahamC
00:22
Ok, try this once your browser is working
http://metaeducation.s3.amazonaws.com/index.html?do=chess
and type
chiu-vs-jensen
00:23
forget about the "ss" which is a typo
00:23
a game of mine from over 40 years ago which I found on the net
Saturday 20th April, 2019
GrahamC
23:02
Here's a little homage experiment
23:02
go to
http://metaeducation.s3.amazonaws.com/index.html
23:03
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.
Last message posted 165 weeks ago.