AltME: REBOL3

Messages

amacleod
Thanks.
GrahamC
So, basically you are writing normal rebol/renc code but your GUI is JS, and I/O has all JS limitations
If we could run on node.js then those latter issues are addressed since it's no longer blocked by browser security considerations
Note that this stuff runs on your phone so you can start to write phone apps

Oldes
Not working... probably because I have not set the required flags, which I'm not going to do... even now Chrome is a devil's beast and I don't want to extend it. I prefer my tooling to be living close to me and don't need to download them from a server all the time.. but good luck with your efford.
GrahamC
That's ignorant oldes. You know you can just save everything locally.
GrahamC
You can either download the repo to your phone or PC.  I have even this script https://github.com/gchiu/rebol-misc/blob/master/setup-rebolweb.reb
if you don't want the sources.  And then grab the latest .wasm file off my S3 site.

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.

Last message posted 161 weeks ago.