Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. interface ILabyrinth
  2. {
  3.  
  4. // create a labyrinth of size 100*100 max. Rabbit and carrot are positioned at random locations within the maze.
  5. void Init();
  6.  
  7. // try to move the rabbit in one direction. return true if the move was successful, returns false otherwise (there was a wall)
  8. bool tryMove(Direction d);
  9.  
  10. // return true if carrot and rabbit are at the same place.
  11. bool isSuccess();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement