/* gcompris - traffic.h * * Copyright (C) 2003, 2008 Bruno Coudoin * * Based on the original code from Geoff Reedy * Copyright (C) 2000 Geoff Reedy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ /* The format and the dataset for the traffic game in gcompris * is taken from from * http://www.javascript-games.org/puzzle/rushhour/ * * [LevelX] * CardY=string describing card 1 * CardY=string describing card 2 * ... * Where X is the Gcompris Level (in the control bar) * Where Y is the sublevel. * * This is followed by a comma separated list defining the cars on the * grid. So the string looks as follows: * * 'ID''X''Y' * * - 'ID' is one char in the range A-R and X * A-N Specify a different car color of size 2 * O-R Specify a different car color of size 3 * X Always Red, the goal car of size 2 * * - 'X' xpos numbers between * 1 to 6 for Vertical car * A to F for Horizontal car * * - 'Y' ypos numbers between * 1 to 6 for Horizontal car * A to F for Vertical car * */ static char *DataList[] = { /* [Level1] */ "XD3,O2F", "XD3,A4C,O2F,PD5", "XC3,A2E,BE5,O2F,P4B", "XB3,AB1,B2E,C2F,D4C,OD1,PD4", "XC3,A3F,BE6,O2E,PD5,Q2B", /* [Level2] */ "XB3,AE5,O2F,P4D", "XB3,A2F,B4C,OD4,PB6,QA1,RD1", "XC3,AC2,B3B,C4C,O2F,PD5", "XD3,AB2,B4D,CE5,O2F", "XC3,A1F,B2E,CD4,DE6,E5D,O3F", /* [Level3] */ "XC3,A2E,BB4,C5B,OA1,PD1,QC5", "XC3,AB2,B3B,C4D,DE5,O1E", "XD3,AE2,BE6,C5B,O3F,P4D", "XD3,AD2,BE5,C4D,OA1,PD1,Q2F", "XC3,AB4,CE6,D5B,OC5,P1E", /* [Level4] */ "XC3,AA1,BC2,CE5,D2B,E4C,O1E", "XA3,AB1,B2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