Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : Gnu Chess


design256
11-07-2006, 11:21 AM
Dear All,

As an introduction to the SDK I have ported Gnu Chess and XBoard to the Iliad. The attached binaries run fine (and will play a good game against you!). Menu updates aren't quite right yet, but I'm working on it...

Installing

Copy gnuchess, gnuchessx and xboard into /usr/bin

Extract libs.tar into /usr/local/lib

Running

Run xboard to play.

Easy install?

Should I write a beginner's installer for this? If I did, would anybody use it?

scotty1024
11-07-2006, 02:13 PM
Well done!

Of course I can't seem to get out once I'm in but I'm sure you are working on that. :)

Let me give you back a very simple to install version of your code (based on my x48 installer.)

It's a zip file and can be extracted in one of two places:
1. Removable media device: MMC/CF/USB stick
2. iLiad's internal memory via USB, make sure you put it someplace visible such as newspapers or books.

User needs [SHELL] hack installed, cross fingers and pray for no bricks...

Insert memory device (if you didn't use USB to iLiad's internal memory)

For internal memory press key for directory you extracted the zip into, click on "gnuchess" then click on "run.sh".

Same for external memory device, navigate to gnuchess then click on run.sh.

I think you'll agree that is much easier to install and keeps all the bits out of the limited internal system memory of the iLiad.

yokos
11-08-2006, 06:17 AM
@ design256
Thils looks great. I'm a big chess fan. :happy2:

some Qs [point of view of a dummies mind] :rolleyes5
Well done!
User needs [SHELL] hack installed, cross fingers and pray for no bricks...

scotty, what does "[SHELL] hack installed" mean?
If I understand previous threads right, shell scripts can be run by WEP Key exploit.

For internal memory press key for directory you extracted the zip into, click on "gnuchess" then click on "run.sh".

Why does iLiad run the sh with click on it?

to other dummies:
to mount iLiad's USB memory in Linux [my suse 9.0 doesn't automatically mount it]
mount /dev/sda /media/sda1

arivero
11-08-2006, 07:05 AM
yokos, the obvious step, after installing all the lauchi/antibrick measures in rc*.d, is to install an automatic shell execution in the registry, for .sh files to be read into /bin/sh or so.

scotty1024
11-08-2006, 07:11 AM
You can execute .sh's directly from ContentLister.

You can have a folder full of .sh's just waiting to be clicked via either the stylus or the up/down and select buttons. Otherwise you are very busy entering WEP keys and clicking test/download buttons. :)

yokos
11-08-2006, 08:04 AM
You can execute .sh's directly from ContentLister.

Yes, but not with factory settings of course. :happy2:
er_registry.txt needs to get updated as described in your post #4 here (http://www.mobileread.com/forums/showthread.php?t=8475&highlight=er_registry.txt).
It's hard to decide for me whether your "a" script is save & more important whether I can do in a correct way. I'm tempted to try it. Playing chess on iLiad is promising.

Drops
11-08-2006, 08:16 AM
Great!!

Now please...GnuGo! :crowngrin

yokos
11-09-2006, 06:22 AM
scotty1024 posted here (http://www.mobileread.com/forums/showthread.php?t=8475) a shellme.zip file, which you can use to change your /mnt/settings/er_registry.txt.

scotty1024
11-16-2006, 03:13 PM
I don't have Design256's source, I've just been his packager. :)

You'll need to go to him for updates on things like the menus, exit button and furiously blinking LED.

I've updated the packaging to .2 version.

narve
11-20-2006, 02:10 PM
Great!!

Now please...GnuGo! :crowngrin

Yes!!!!!!!!!!! PLEASE! That would really be cool...

narve
11-20-2006, 02:45 PM
Yes, but not with factory settings of course. :happy2:
er_registry.txt needs to get updated as described in your post #4 here (http://www.mobileread.com/forums/showthread.php?t=8475&highlight=er_registry.txt).
It's hard to decide for me whether your "a" script is save & more important whether I can do in a correct way. I'm tempted to try it. Playing chess on iLiad is promising.
Yokos, I saw your work on the ipdf installers -- nice work! Feel like doing the same on GnuChess (and GnuGo:)), mrxvt, x48? I've already installed these programs, but I think more people will try out community-developed programs if they are really easy to install, even including icons as you did.

Or perhaps I should do it myself. Just gotta finish a few books and a game of chess first...

scotty1024
11-20-2006, 02:56 PM
Yokos, I saw your work on the ipdf installers -- nice work! Feel like doing the same on GnuChess (and GnuGo:)), mrxvt, x48? I've already installed these programs, but I think more people will try out community-developed programs if they are really easy to install, even including icons as you did.

Have you tried the .2 versions of the applications?

They've always been unzip and go, but the .2 versions broke new ground by introducing the icon concept along with just click n' go (no need to find run.sh and click on it.)

I'm not certain how much easier they could be made to install at this point.

JacquesL
11-20-2006, 06:47 PM
yes I confirm, Thanks for the .2 versions of all applications, so easy to get : http://wiki.mobileread.com/wiki/Iliad_Software, so easy install, so easy to lunch et so great to use.
merci et bravo !

narve
11-21-2006, 09:50 AM
Have you tried the .2 versions of the applications?

They've always been unzip and go, but the .2 versions broke new ground by introducing the icon concept along with just click n' go (no need to find run.sh and click on it.)

I'm not certain how much easier they could be made to install at this point.

Ah, no I didn't notice the 0.2 version. Will try it today (I finally found my stylus again... :D). Cool!

By the way, I think the attachment links at http://wiki.mobileread.com/wiki/Iliad_Software should be removed. They point to wrong versions and they don't work anyway -- I get an error message "Please don't hotlink to our images"...

jęd
11-21-2006, 10:15 AM
By the way, I think the attachment links at http://wiki.mobileread.com/wiki/Iliad_Software should be removed. They point to wrong versions and they don't work anyway -- I get an error message "Please don't hotlink to our images"...

Well... Its a wiki so it would be handy if the mainteners of each package updated them... :D

VillageReader
11-21-2006, 10:45 AM
Chess would be one game I'd consider. But I'm chicken, so I'll wait for some others to test things out.

k2r
11-21-2006, 11:22 AM
But I'm chicken, so I'll wait for some others to test things out.Except from having to let iRex install the shell-patch on your device there should be no danger in trying this package since it does not install any additional software. It seems to work for me.
Of course - don't quote me on that :-)

narve
11-21-2006, 12:08 PM
Chess would be one game I'd consider. But I'm chicken, so I'll wait for some others to test things out.
Works great for me as well. The only problem is that you can't quit... -- literally I mean. I had to shut down the iLiad to get out. So not really something for the commuters, but if you plan to finish a game it works great.

narve
11-21-2006, 12:09 PM
Well... Its a wiki so it would be handy if the mainteners of each package updated them... :D

I noticed that I have write permission as well. Does the direct links work for anyone? If not, I can remove them and also add a short how-to for beginners.

design256
11-21-2006, 06:52 PM
Works great for me as well. The only problem is that you can't quit... -- literally I mean. I had to shut down the iLiad to get out. So not really something for the commuters, but if you plan to finish a game it works great.

Here's version 0.3. The menus work a bit better than they did in v0.2 so you can now quit if you are careful. As the Iliad is very slow at updating its display, I have put three Exit tabs at the top of the File menu. This way you stand a good chance of hitting one of them :D Double clicking on the menus also seems to make them appear more consistently.

I've also set it to run with a bigger board size so it makes better use of the Iliad's display.

henkvdg
11-22-2006, 02:57 AM
Thanks,

There seems a little improvement.

Eventually, I succeeded in exiting the program without reset of the device.

Please turn off the blinking LED (Scotty knows how).
Or turn it off after the iLiads "thought process"

Could you shift the board to the right a little bit.
It seems that my display is slanted a little, and the upper left corner is a little under the edge.

There is enough space to the right.

Thanks for the work you did already!

design256
11-22-2006, 06:45 AM
Thanks,

There seems a little improvement.

Eventually, I succeeded in exiting the program without reset of the device.

Please turn off the blinking LED (Scotty knows how).
Or turn it off after the iLiads "thought process"

Could you shift the board to the right a little bit.
It seems that my display is slanted a little, and the upper left corner is a little under the edge.

There is enough space to the right.

Thanks for the work you did already!

Here is version 0.4:

- board is now centred horizontally

- blinking LED is turned off

- There is now a Quit button (labelled Q ) in the button bar. You still have to jab it several times to get it to notice you, but it's not as hard work as the menus were.

I'd love to get some of the simple IPC stuff working so I could respond to the Iliad's buttons, but the documentation in the SDK is really sparse and the only example I have is IPDF written in C++.

BTW, I have uploaded all my working sources to my FTP area on MobileRead. I will try to keep this current - feel free to browse.

The GreatGonzo
11-22-2006, 06:59 AM
Very happy with this game, I must say - however, even with the improved version, I cannot get a single menu to come up. Also, while the whole board size has been increased, the menu bar is just as tiny as before and kinda hard to use, seeing as it comes up right to the edge of the Iliad's screen.

As for exiting - as long as I put the stylus into its slot when I'm done, I have no problems exiting to any other book or application.

yokos
11-22-2006, 07:28 AM
design256, thanks for the update.
The Q-button works very well, yamp - no rebooting anymore.
Thanks for the sources, too. I will have a look later this day. :happy2:

When you start Gnu Chess, all squares have the same grey colour, press the UP-Key once, then they transform in b&w squares.

jęd
11-22-2006, 08:58 AM
BTW, I have uploaded all my working sources to my FTP area on MobileRead. I will try to keep this current - feel free to browse.

Cool...! Any chance of uploading a tar ball (or even just a zip) file so its easier to download...? :D :blink:

yokos
11-22-2006, 09:04 AM
Cool...! Any chance of uploading a tar ball (or even just a zip) file so its easier to download...? :D :blink:
Yes, this would be more handy.
design256's folder is here (http://projects.mobileread.com/iliad/users/design256/).
Nearly got it [DL manager helps]: 214 files ...

jęd
11-22-2006, 09:35 AM
Yes, this would be more handy.
design256's folder is here (http://projects.mobileread.com/iliad/users/design256/).
Nearly got it [DL manager helps]: 214 files ...

Or even


wget -r --no-parent -R "index.html*" http://projects.mobileread.com/iliad/users/design256/gnuchess-5.07/


142 files...?

Alexander Turcic
11-23-2006, 11:49 AM
Yes, this would be more handy.
design256's folder is here (http://projects.mobileread.com/iliad/users/design256/).
Nearly got it [DL manager helps]: 214 files ...
I went ahead and gzipped the files for you.

jęd
11-23-2006, 12:17 PM
I went ahead and gzipped the files for you.

Thanks...! :D

The GreatGonzo
11-23-2006, 06:26 PM
Here is version 0.4:
- board is now centred horizontally
- blinking LED is turned off
- There is now a Quit button

Thanks for the continuing upgrades, design256; I've already played more chess in the last three days than in the last three years ...
but I'm still not getting any menus! (everybody else seems to be getting them, so I wonder what it could be...)

Tapping on the menu bar works, but all I get in return are white rectangles of varying size.

What the heck?

henkvdg
11-24-2006, 12:01 PM
Thanks !!!, I can quit the program easier now.
But indeed the menus turned completely white now.

And the pieces should jump, not slide. I get a lot of shadows.

And if I remember well, earlier they jumped.

Probable something changed in the display update.


Here is version 0.4:

- board is now centred horizontally

- blinking LED is turned off

- There is now a Quit button (labelled Q ) in the button bar. You still have to jab it several times to get it to notice you, but it's not as hard work as the menus were.

I'd love to get some of the simple IPC stuff working so I could respond to the Iliad's buttons, but the documentation in the SDK is really sparse and the only example I have is IPDF written in C++.

BTW, I have uploaded all my working sources to my FTP area on MobileRead. I will try to keep this current - feel free to browse.

DigiDirk
12-07-2006, 05:54 AM
Just a quick report.

Upgraded to 2.8 this morning and Gnu Chess does not run anymore.

Just a screen refresh, nothing else... :blink:

Scotty's x48 still runs...

Dirk :cool:

scotty1024
12-11-2006, 05:55 PM
iRex has rebuilt all their liber's and bumped a couple revisions. Design256 may need to re-compile.

CommanderROR
12-11-2006, 06:10 PM
welcome back scotty!

scotty1024
12-12-2006, 10:32 AM
welcome back scotty!
Good to be back!

Adam B.
01-04-2007, 11:40 AM
I just got my shell script access today on 2.8.

When trying to run this, it complains that it can't find libXpm.so.4. Does anyone have this file compiled for the iLiad?

Edit: Nevermind, I was able to find a copy of libXpm.so.4.11.0 in Antartica's toolchain. The only problem is that I can't get any of the menu's to appear correctly, so I'm not able to close out of it.

yokos
01-05-2007, 08:06 AM
Not a bad idea to run "./xboard -size Big -fcp ./gnuchessx" in mrxvt. :happy2:
error message looks like this../xboard: error while loading shared libraries: libXpm.so.4 : cannot open shared object file: No such file or dictionary

To all: copy the file libXpm.so.4 from zip-file to the lib directionary of gnuchess; then gnuchess will start again.

[EDIT]When you start Gnu Chess, all squares have the same grey colour, press the UP-Key once, then they transform in b&w squares.
This is not working on 2.8. Yes, adding one old library file doesn't replace re-compiling. :scholar:

[EDIT:] I uploaded in #49 (http://www.mobileread.com/forums/showpost.php?p=73153&postcount=49) the files you need for 2.9.x or 2.10.

henkvdg
01-05-2007, 08:51 AM
Not a bad idea to run "./xboard -size Big -fcp ./gnuchessx" in mrxvt. :happy2:
error message looks like this../xboard: error while loading shared libraries: libXpm.so.4 : cannot open shared object file: No such file or dictionary

To all: copy the file libXpm.so.4 from zip-file to the lib directionary of gnuchess; then gnuchess will start again.

[EDIT]
This is not working on 2.8. Yes, adding one old library file doesn't replace re-compiling. :scholar:

Thank you! The program is back working!

Adam B.
01-05-2007, 09:22 AM
Thank you! The program is back working!

I forgot my iLiad at home today (Doh!). Does the file menu work, so that you can cleanly exit the program?

yokos
01-05-2007, 09:29 AM
I forgot my iLiad at home today (Doh!). Does the file menu work, so that you can cleanly exit the program?
Yes, the menus don't appear correctly.
Please use the Q-button to quit Gnu Chess as mentioned earlier in this thread. :happy2:

henkvdg
01-05-2007, 09:41 AM
I forgot my iLiad at home today (Doh!). Does the file menu work, so that you can cleanly exit the program?

I tried Q for quit. Did not work.

I tried the menu. Did work.

Adam B.
01-05-2007, 09:45 AM
Yes, the menus don't appear correctly.
Please use the Q-button to quit Gnu Chess as mentioned earlier in this thread. :happy2:

I actually completely missed that post with version 4....I was still using version 3. :rolleyes5

I'll give it a try when I get home. Thanks for the help.

yokos
01-05-2007, 10:06 AM
I tried Q for quit. Did not work.

mmh, curious; on my iLiad 2.8 with Gnu Chess 0.4 one click with sytlus on Q next to << < P < >> in top right of screen quits program instantly.

henkvdg
03-05-2007, 02:07 PM
Sorry to say, but GNU chess stopped again working with 2.9, as well as TED. The terminal program still runs.

yokos
03-06-2007, 09:45 AM
Same as dillo starting problem. Gnu Chess can't find "libXp.so.6".
This file should be included in 2.8 os in the wiki (http://projects.mobileread.com/iliad/projects/os/).

[EDIT:] iLiad's os 2.9 likes Gnu Chess again. :cool:
Please copy the file "libXp.so.6" in the attached zip file (http://www.mobileread.com/forums/attachment.php?attachmentid=2900) to the subdirectory "lib" in your Gnu Chess directory.
[EDITII:]gnu chess screenshot with 2.9 icons in toolbar. :happy2:

henkvdg
03-06-2007, 01:37 PM
Sorry Yokos,

It says: "invalid attachment" I cannot download it.

(BTW: Nice that you fixed it again)

But I took the file from Dillo. Now both work again! Thanks!

henkvdg
05-08-2007, 01:32 PM
Same as dillo starting problem. Gnu Chess can't find "libXp.so.6".
This file should be included in 2.8 os in the wiki (http://projects.mobileread.com/iliad/projects/os/).

[EDIT:] iLiad's os 2.9 likes Gnu Chess again. :cool:
Please copy the file "libXp.so.6" in the attached zip file (http://www.mobileread.com/forums/attachment.php?attachmentid=2900) to the subdirectory "lib" in your Gnu Chess directory.
[EDITII:]gnu chess screenshot with 2.9 icons in toolbar. :happy2:


With 2.9.5 Gnu Chess does not run anymore (again).

templario
05-08-2007, 01:55 PM
Actually it works for me and i“m with 2.9.5. I just try to confirm what you wrote, and no problems so far.

yokos
06-07-2007, 08:29 AM
Gnu Chess is 2.10 compatible.
GnuChess Wiki with known odds (http://wiki.mobileread.com/wiki/Iliad_Software#GnuChess_0.4) -> no menu etc.
GnuChess download (http://www.mobileread.com/forums/attachment.php?attachmentid=2247&d=1164199450)
Attached are the files which are missing in the Gnu Chess download. Without them Gnu Chess doesn't start on 2.9.x-2.10.
[EDIT:] I replaced zip-file [I have removed very odd typing mistakes]. :p