Example #1
0
void Initialize() {
	quit = false;
	next_level = false;
	player.x = 1;
	player.y = SIZE-1;
	maze.Generate(SIZE);
	maze.data[player.x + (player.y*SIZE)] = 2;
}
Example #2
0
void time_maze(Maze& maze)
{
  auto st = std::chrono::system_clock::now();

  maze.Generate();

  auto end = std::chrono::system_clock::now();
  auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(end - st);
  std::cout << elapsed.count() << " ms\t:" << maze.GetName() << std::endl;
}