// This may look like C code, but it is really -*- C++ -*-

//
//  monopoly-template  --  Copyright (c) University of Aizu 1994
//
// [# Edit, Date, User, Module #]

#include <stream.h>
#include <Game.h>
#include <Space.h>

void checkSpaceL()
{
  cerr << "Checking class SpaceLoop\n";
  Game game;

  game.read();
  game.write();

  Space* space;

  space = (Space*)game.spaces.head();

  int i;
  for (i = -7; i <= 7; i++) {
    cout << "Going forward " << i << " steps\n";
    space = space->next(i);
  }

  for (i = -7; i <= 7; i++) {
    cout << "Going backward " << i << " steps\n";
    space = space->prev(i);
  }

}
