You are a scientist whose had a bad day and wish to take it out on your favorite maze running rodent.
The setup:
1. The maze is set on a nxn grid, where n is some large integer.
2. The mouse will always move in the direction that will get it to the cheese the quickest, but can only move north, south, east, and west. The mouse prefers different cardinal directions consistently (it only matters that it is consistent, you can choose the ordering to maximize time), but only uses this preference to break ties when two paths of equal lengths are encountered. Assume the mouse takes 1 second to move from one square to another.
3. At any time, you can pause time and place a wall (essentially a brick the size of the square) in a grid square. Once time starts again, the mouse instantly determines the new optimal path and follows it. Obviously, if the mouse is even partially in the square you cannot place a wall there (your day wasn't _that_ bad).
4. Walls cannot be removed once placed.
5. You can place the cheese and start the mouse anywhere in the maze, but you cannot move the mouse or cheese once initially placed.
6. You must always leave at least one path open to the cheese from the mouse's current location.
The goal:
Make the mouse take as long as possible before it gets the cheese.
Scoring criteria:
Score = time taken/(n*n). This essentially measures how many times on average each square (even blocked off ones) is traveled through by the mouse.
What is the best strategy you can come up with (and the score associated with it)?
I found a flash game called "Maze Stopper" (and it's sequel "Maze Stopper 2", both by FlashRelax), and it is essentially this idea. Just search for "Maze Stopper" in google (I play it from kongregate, a flash game site) for the game if you want to test out some ideas (though you cannot place starting positions, and the pathfinding has very minor (though exploitable) flaws). I have practically all the high scores for the interesting levels, and have been looking for some competition.
I have a pretty good solution for the limit as n approaches infinity (that I used on the large map in the original "Maze Stopper"), but I'm not positive that it is optimal. (I'll post a description and it's in-the-limit score later)
Question
EventHorizon
You are a scientist whose had a bad day and wish to take it out on your favorite maze running rodent.
The setup:
1. The maze is set on a nxn grid, where n is some large integer.
2. The mouse will always move in the direction that will get it to the cheese the quickest, but can only move north, south, east, and west. The mouse prefers different cardinal directions consistently (it only matters that it is consistent, you can choose the ordering to maximize time), but only uses this preference to break ties when two paths of equal lengths are encountered. Assume the mouse takes 1 second to move from one square to another.
3. At any time, you can pause time and place a wall (essentially a brick the size of the square) in a grid square. Once time starts again, the mouse instantly determines the new optimal path and follows it. Obviously, if the mouse is even partially in the square you cannot place a wall there (your day wasn't _that_ bad).
4. Walls cannot be removed once placed.
5. You can place the cheese and start the mouse anywhere in the maze, but you cannot move the mouse or cheese once initially placed.
6. You must always leave at least one path open to the cheese from the mouse's current location.
The goal:
Make the mouse take as long as possible before it gets the cheese.
Scoring criteria:
Score = time taken/(n*n). This essentially measures how many times on average each square (even blocked off ones) is traveled through by the mouse.
What is the best strategy you can come up with (and the score associated with it)?
Link to comment
Share on other sites
24 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.