Nanobots: skeleton.cpp Updates

We've found several bugs in the skeleton.cpp file. Here are the fixes. The newest version of the skeleton.cpp is also available.

skeleton.cpp (04/28/99)

Large Map Bug Fixes (04/28/99)

Line 95:     if ((mapWidth  < 3) || (mapWidth  >= MAXMAP)  ||
Should Be:   if ((mapWidth  < 3) || (mapWidth  > MAXMAP)  ||

Line 96:         (mapHeight < 3) || (mapHeight >= MAXMAP) ||
Should Be:       (mapHeight < 3) || (mapHeight > MAXMAP) ||

Line: 112:     cin.getline(l,MAXMAP-1);
Should Be:     cin.getline(l,MAXMAP);
"Harmless" Bug Fixes (04/28/99)

Line 104:        map[j][i] = 'X';
Should Be:       map[i][j] = 'X';