I'm from the Bay Area, CA, and I'm very interested in computer engineering and/or the application of AI. During this project, I helped brainstorm ideas for our model and applied them to our current model, testing it to make sure it functioned correctly - that helped our team build the most efficient model possible. Fun fact: I love watching sitcoms like The Big Bang Theory and Friends!
17 · Senior Bay Area, CA
Lizzy Chu
I'm interested in Computer Science and Machine Learning. During this project, I worked on developing the model, building new updates, and adding new features to the game. I'm from the Bay Area - fun fact, I always know where north is.
16 · Senior Florida
Sergey Dmitriev
I'm from Florida, and I am passionate about technology in general - specifically Computer Engineering, and even more specifically, programming robots and seeing the results in a physical format. I'm also invested in AI updates and how machine learning works in general, which is why we decided to build this together. Fun fact: I'm naturally good at photography and have a good eye.
17 · Senior Ji-Paraná, Brazil
Bernardo Dias Martins
I'm interested in Computer Science or Software Engineering. I was able to contribute to my group's project by designing our logo and graphical user interface, collaborating effectively with my teammates, and sharing creative ideas that helped improve our work. I'm from Ji-Paraná, Rondônia, Brazil, and a fun fact about me is that my dog's name is Cupcake.
StartExit / wallDesired path
Time to finish, by shape
Every run counts here - "Run One Episode," every one of the 50 in "Train ×50," and "Watch Learned Route" - labeled with the maze size it happened on. Runs that actually reached the exit connect into a line so you can watch the trend as you test the same size again and again; a red "×" marks a run that didn't make it, with no line drawn through it. If you change to a different size for that shape, the chart doesn't reset; it just keeps going, with a light dotted line marking where the size changed. Times are based on how many moves a run took, not the wall-clock speed you're watching it at, so the Speed slider never skews this chart. Square, Double Square, and L-Shape each get their own chart below, and only the most recent 40 runs are shown so it stays readable.
Square
Double Square
L-Shape
1 · Mark start & exit
2 · Walls
The dashed strips are the narrow gaps between two cells - click directly on that gap (not the cells themselves) to build or remove a wall there. A wall only blocks movement between those two specific cells.
3 · How should the mouse learn?
Draw the desired path
Mark a start and an exit to begin.
No path needed here. The mouse gets a flat penalty for every single step, and a big reward only when it reaches the exit - a ten-step detour costs the same whether it moves toward the exit or away from it. That means the mouse learns to minimize total steps rather than chase straight-line distance, which is what actually handles mazes with real detours correctly. More than one route is fine in this mode.
Build a maze with more than one route through it, then draw and save each path one at a time - start to exit, same as Guided mode. No two saved paths can be the same length. Finishing via the shortest saved path pays the full exit bonus; each next-longest path pays less (see Scoring in Advanced controls) - e.g. with 3 paths saved, the shortest might pay 20, the middle 15, the longest 10 - so the mouse is directly rewarded for finding the shortest one.
No paths saved yet.
🔒 This maze was auto-generated. Manual editing is off - hit Restart to build one by hand.
Train the mouse
Normal
Each run, the mouse picks up/down/left/right moves. Matching your path earns reward; walls and wrong turns don't. Reach the cheese and it's gone - until the next run.
This is where the mouse actually learns. "Run One Episode" sends the mouse through the maze one time, choosing moves based on what it currently believes and updating those beliefs afterward. "Train ×50" does the same thing fifty times in a row without the animation, so the mouse can rack up experience quickly. "Watch Learned Route" shows the mouse acting on its best current knowledge only, with no random exploring, so you can see how good it's gotten. "Train Until Mistake-Free" keeps training automatically - up to 3000 episodes - until the mouse completes one run with zero mistakes, matching the true shortest possible route, then tells you how many episodes that took. "Reset Agent" wipes everything the mouse has learned on this maze and starts it over from scratch, as if it had never seen the maze before. The Speed slider goes from Normal up to Instant, fast-forwarding the animations so the longer actions don't make you wait as long to see the result. None of these buttons change the maze itself - only how much the mouse knows about it.
0
Episodes
0%
Success rate
–
Last steps
–
Points earned
Episodes is simply a running count of every time the mouse has attempted the maze, successful or not. Success rate is the percentage of those attempts that actually ended with the mouse reaching the cheese, so it's a good measure of how reliable the mouse has become. Last steps shows how many moves the most recent run took to finish - fewer steps generally means a more direct route. Points earned is the reward the mouse collected on its most recent run, combining bonuses for good moves with penalties for mistakes. Together these four numbers give you a quick snapshot of how training is going without needing to watch every single run.
Learning curve - steps to reach the exit
This chart is a history of how many steps the mouse needed to reach the cheese, one bar per recent run. A tall bar means that run took a long time to finish, while a short bar means the mouse found a quick route. A red mark at the bottom means the mouse ran out of moves without ever reaching the cheese on that attempt. As training continues, you should generally see the bars trend shorter and the red marks become rarer, which is a visual sign that the mouse is actually learning rather than just guessing.
Run log
No runs yet. Run an episode to see it here.
The run log keeps a written history of every episode, most recent at the top. Each row shows which episode number it was, the time it happened, how many steps it took, whether the mouse reached the exit, how many points it earned, and the overall success ratio up to that point. It's useful for spotting patterns, like whether the mouse suddenly started succeeding more often after a certain point, or whether it's stuck repeating the same mistake. Scrolling back through older entries can help you understand not just how well the mouse is doing now, but how its performance has changed over time.
Saved agents
Saving an agent stores a snapshot of the maze layout together with everything the mouse has learned so far - its full memory, its stats, and its run history - under a name you choose. Loading a saved agent brings all of that back exactly as it was, including the maze, so you can pick up training right where you left off or compare two differently-trained mice on the same maze. Deleting removes a saved snapshot for good. This is stored in your browser, so it will still be here next time you open this page on the same device, but it won't follow you to a different computer or browser.
Scoring
These numbers decide how many points are gained or lost for each kind of move, for both the AI and for you in Play It Yourself mode. In Guided mode, a step that follows the intended route earns the "correct step" amount, while a step that's technically open but leads away from the route only earns the smaller "wrong or backward step" amount, which is usually negative. In Discover mode, every single step instead costs the flat "step cost" amount regardless of direction - that's what makes the mouse minimize total steps rather than distance to the goal. In Multiple Paths mode, reaching the exit pays the full "reaches the exit" bonus only for the shortest saved path; each next-longest saved path pays "points lost per rank" less than the one before it, so a mouse that finishes via the second-shortest route earns less than one that finds the shortest, and so on. Bumping into a wall or the edge of the grid costs the steepest penalty, since it's fully avoidable.
Learning parameters
0.30
.35
Learning rate decides how strongly a single new experience changes what the mouse already believes about a move. A high learning rate means the mouse updates its beliefs quickly and can adapt fast, but its behavior might swing around and feel less steady. A low learning rate means it learns more slowly and smoothly, holding onto older experience longer before letting new results change its mind. Exploration decides how often the mouse deliberately tries something other than what it currently thinks is best, purely to see what happens. Without any exploration the mouse could get stuck confidently repeating an okay-but-not-great route forever, so a little randomness helps it stumble onto better paths it wouldn't have found otherwise.
You start hereExit / revealed wallGood step
You're the agent now
You know the grid is 3×3 - nothing else, not its shape or where the exit is. Only the square you're standing on is visible; everything else reveals itself as you actually step into it. Walls are invisible until you bump into one. Move with the arrows below, the on-screen pad, or your arrow keys / WASD.
In this mode, you are the one learning the maze - not the AI. Only the square you're on is visible at first, not even the exit's location - each square you step into stays revealed after that, so the map fills in gradually as you explore, the same way the AI only discovers a maze piece by piece. None of the walls are visible at the start either. Move with the arrow keys, WASD, or the on-screen buttons; if you bump into a wall, it reveals itself so you remember it's there, but you lose points for the mistake. Moving into open space that takes you further from the exit also costs a small penalty, even though it isn't a wall, because it means you wandered off the best route. Turn on "Mystery Size" if you want to not even know the grid's dimensions going in - it picks a random size each time instead of letting you choose. Reach the exit without ever losing points along the way, and you've solved it cleanly - a brand new maze will generate at your chosen size, and a clean solve lets you add your time to the leaderboard for that size. If you make any mistake along the way, you restart from the beginning of this same maze, keeping everything you've already discovered about it - including which squares you've seen - so you can use what you learned to try for a clean run.
🐭
+0
Points this attempt
0
Attempts on this maze
Clean so far
Attempt status
Size
Changing size starts a brand-new maze at that size.
🏆 Fastest clean solves - 3×3
Only counts on this browser/device - great for people taking turns on one computer, but it won't show times from anyone using a different device.