A Tiny Toledo Javascript Chess App

This is a tiny tutorial on how to run a Javascript file from the Media folder.

I went looking for the easiest possible approach to run a chess program on AI2 with full source code access. No extensions were used, so this should be runnable on iOS too.

So here's the source blocks:

The takeaway for me is the http://localhost/ prefix to the Media folder file name.
(I'm just dipping my toe into Javascript.)

Credits:

Javascript chess engine courtesy of

https://nanochess.org/archive/toledo_javascript_chess_3.html

by Oscar Toledo G.

The aia:
chess_toledo.aia (3.3 KB)

Sample suicidal run:
Sample run

3 Likes

With separate files, so you can add more html/css...

tchess.aia (3.7 KB)

1 Like