Skip to content
A project for me to performance test my searching for my bot competing in
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Search Playground


This project exists because I needed a place to test functionality and more importantly performance of my breadth first search and A* search implementations for the Google AI Challenge.

The code is strange at times largely due to efforts that were made to squeeze maximum performance out of it. For example, to keep track of insert order and still have quick lookups, I used both a Deque and a Dict to store the list of open nodes in both of them while searching. This was vastly faster than any other option (including OrderedDict, actually).

While some of the code is particularly oriented for the AI Challenge, it should be able to be used for other applications with a little adapting.

The method calc_path is the A* implementation and bfs_path is the breadth first search implementation.


  • - This contains all logic about searching and ascii visualizing the results.
  • - Code I used for testing that calls a search and prints the path and search data.
  • - Unit tests.
  • little_maze.txt and big_maze.txt - Two sample maps used for testing.
  • - Runs search for all start/finish possibilities to test performance.
You can’t perform that action at this time.