[Retros] Retro programming

Alain BROBECKER abrobecker at yahoo.com
Thu Feb 4 09:24:15 EST 2010


Dear retro fans,

I've written a small C program that takes as input an
8 white pawns list, and returns the number of captures
as well as some infos of the pawns' origins.
At the moment it requires *8* pawns, and you must
use it from the command line (do$ or else).

Below is an example from a simple "rotate the board"
problem i just submitted to a magazine and which was
partly composed using this program:

----------------------------------------------
C:\baah\c\Pawns>8pawns c4 e4 e5 f2 f3 f4 f5 g4
Number of captures>=12
.........
.........
.........
.....bO..
...a.OOO.
......O..
......f..
.........
8/8/8/4PP2/2P1PPP1/5P2/5P2/K6k

Pc4: a....... a.......
Pe4: ..cde.g. ..cde.gh
Pe5: .b...... .b......
Pf2: .....f.. .....f..
Pf3: ....e.g. ..cde.gh
Pf4: ...de.gh ..cde.gh
Pf5: ..cde.gh ..cde.gh
Pg4: ....e.gh ..cde.gh
----------------------------------------------

Feel free to use, modify, improve...
It can be found at:
http://abrobecker.free.fr/tools/8pawns.zip

Did anyone already made such a routine for
less pawns and/or for mixed B&W pawns?
I know there's one in Retractor, but sourcecode
is not available.

Best regards,
Alain (off for 2 weeks holidays! :)


Alain Brobecker (abrobecker at yahoo.com) |_ _ _ |_
http://abrobecker.free.fr/ |_)(_|(_|| ) of Arm's Tech







More information about the Retros mailing list