Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4441

Native Popeye - A chess problem solving program - now ported to Kindle!

$
0
0
General:
Popeye solves chess problems - both orthodox and in fairy chess(using different rules for stipulations, pieces and conditions).

It's a CLI program, which accepts input from a text file or keyboard(the position to be solved) and after solving it, sends the results to the screen and/or a text file.

Porting History:
It was originally written in the early 1980s, in a Pascal dialect, and ran on MS-DOS. It was later re-written in C and ported to run on Unix, Windows, OS/2, VAX VMS, IBM MVS, SIEMENS BS2000, MacOS, and Linux.

Recently it was ported to Android and Iphone by re-writing it in asm.js - a subset of JavaScript. This allowed it to run under any browser supporting JavaScript. (http://matplus.net/start.php?px=1483...&fid=it&page=0)

However, the port didn't work in the Kindle browsers. So I made a series of posts in another thread here (http://www.mobileread.com/forums/sho...4&postcount=22), intending to start an ARM specific native port which would work on the Kindle command line.

After seeing my posts, member encol kindly did a quick porting with his Kindle development setup(http://www.mobileread.com/forums/sho...8&postcount=30). Many thanks to him! I have re-attached the executable created by him to this post. Only renaming it from "py" to "popeye".

Instructions:
1. Your Kindle should be Jailbroken
2. kterm should be installed
3. Download the attached executable ("popeye")
4. Extract it to any suitable folder under /mnt/us
5. For running it, open kterm, navigate to the directory where it was extracted and type "./popeye"
6. Popeye now displays version and memory information and expects you to enter the position to be solved, using the protocol defined in the help file
7. Alternatively you can enter and save the position in a text file in the same folder as popeye. And then run it as "popeye xyz.txt", where"xyz.txt" is the file containing the position
8. After solving the position, popeye displays the solution on the screen. It can also be made to save the solution to a text file by specifying this in the input.

Help File:
The Popeye help file contains exhaustive instructions, covering all the possible options: https://github.com/thomas-maeder/pop...75/py-engl.txt

Other help sources:
More visual instructions may be found here:
http://juliasfairies.com/software/po...-and-examples/
http://juliasfairies.com/software/po...to-run-popeye/
http://juliasfairies.com/software/popeye/bscripts/
These are windows specific but can easily be adapted to a linux setting.

History:
An overview and a development history are here:
http://juliasfairies.com/software/popeye/
http://juliasfairies.com/software/po...ory-of-popeye/

Source code:
The source code can be seen here: https://github.com/thomas-maeder/popeye/releases/

Tried on:
Has been tested on PW1, PW3 and KT3. Should work on other models too.

Attached Files
File Type: zip popeye.zip (284.0 KB)

Viewing all articles
Browse latest Browse all 4441

Trending Articles