Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * main.cpp
- *
- * Created on: 08/07/2012
- * Author: Vikram
- */
- #include "gridworld.h"
- int main() {
- gridworld::Map map = gridworld::Map();
- gridworld::Display display = gridworld::Display();
- gridworld::InputManager input = gridworld::InputManager();
- bool quit = false;
- display.intro();
- do {
- display.exits(map);
- quit = input.runTurn(map);
- } while ((map.finish() == false) and (quit == false));
- display.finish(map);
- if (quit) display.quit();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement