[gcompris-devel] chess position to complete

Bruno Coudoin bruno.coudoin at free.fr
Fri Oct 24 16:27:19 UTC 2003


Anybody interrested in completed the chess activity. I never focused on
providing good exercices for the kids.
It's easy to complete by editing the code in:
chess_position.c:217:position_set_initial_partyend ()
and just after:
position_set_initial_movelearn 

There is a switch by level and you just need to fill the position using
code like this:
	/* The white pieces */
	pos->square [E1] = WK;
	pos->square [G1] = WQ;

It's sad to have a great chess game here and not to use it to all it's
capability.

Bruno.






More information about the Gcompris-devel mailing list