|Re: Chess on the uWatch !|
Message #5 Posted by DaveJ on 30 Mar 2009, 5:07 p.m.,
in response to message #4 by hugh steers
The chess engine is Tom Kerrigan's Simple Chess Program (TSCP). http://www.tckerrigan.com/Chess/TSCP
As you can see, right now, ive only got the very basic move IO up and running. I had to adapt TSCP to run in 4K of RAM. Things like the book moves had to go, although i've noticed it makes traditional openings anyway.
I've written to Tom Kerrigan to ask permission to use his work. If he is happy i might improve the interface and add more features. for example, it would be nice to have a "postal" mode, whereby you can switch out of chess back to clock/calc and later back into chess to make a move whilst continuing the same game. other easy features are; swap sides, undo, set level etc.
it's been suggested already to draw the board as a scrolling two line square of letters (usual notation) and use the other screen space for move IO.
I'll see what Tom says first. currently this is a demo.
I know TSCP well, I adapted it not that long ago to run on an Altium Nanoboard in a soft core MIPS processor on an FPGA:
That was the first hacked version, I subsequently got it working with bitmap pieces. The interface is touch-screen QVGA.
I was also in the process of translating some of the code into hardware (C to VHDL compiler) to make it run faster.
No problems with memory of course, easily ran in 32K.
Tom is cautious of it being redistributed, so I wouldn't be surprised if he says no to having the code merged with a GPL open source project.
Edited: 30 Mar 2009, 5:08 p.m.