2 // boards.cpp: Actual playable (we hope!) game boards
5 // © 2014 Underground Software
7 // JLH = James Hammons <jlhamm@acm.org>
10 // --- ---------- ------------------------------------------------------------
11 // JLH 03/03/2014 Created this file
15 // We use anonymous structs to create these, to keep things simple. :-)
21 // . = Spot to move box to
22 // + = Spot to move box to, that already has a box on it
23 // o = Player initial position
27 unsigned int width, height;
28 unsigned char state[5 * 5 + 1]; } board001 = { 5, 5,
38 unsigned int width, height;
39 unsigned char state[7 * 7 + 1]; } board002 = { 7, 7,
51 unsigned int width, height;
52 unsigned char state[7 * 5 + 1]; } board003 = { 7, 5,
62 unsigned int width, height;
63 unsigned char state[8 * 5 + 1]; } board004 = { 8, 5,
73 unsigned int width, height;
74 unsigned char state[8 * 7 + 1]; } board005 = { 8, 7,
86 unsigned int width, height;
87 unsigned char state[8 * 8 + 1]; } board006 = { 8, 8,
100 unsigned int width, height;
101 unsigned char state[8 * 6 + 1]; } board007 = { 8, 6,
111 static const struct {
112 unsigned int width, height;
113 unsigned char state[10 * 8 + 1]; } board008 = { 10, 8,
125 static const struct {
126 unsigned int width, height;
127 unsigned char state[9 * 7 + 1]; } board009 = { 9, 7,
138 static const struct {
139 unsigned int width, height;
140 unsigned char state[7 * 7 + 1]; } board010 = { 7, 7,
151 static const struct {
152 unsigned int width, height;
153 unsigned char state[10 * 8 + 1]; } board011 = { 10, 8,
165 static const struct {
166 unsigned int width, height;
167 unsigned char state[10 * 6 + 1]; } board012 = { 10, 6,
177 const void * boards[] = {
178 &board001, &board002, &board003, &board004, &board005, &board006, &board007, &board008,
179 &board009, &board010, &board011, &board012, //&board013, &board014, &board015, &board016,