

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Traffic Tiles
incomplete
2: Traffic Grid
incomplete
3: A* Search Algorithm
incomplete
4: A* Code
incomplete
5: A* Search Review
incomplete
This lesson's interactive features are locked, please to keep using them
Now that we have tiles, let's build a TrafficGrid class. This will be the class our search algorithm will use to move around the grid. For the sake of simplicity, we'll assume that movement is allowed between any two adjacent tiles. Essentially every tile is a 4-way traffic intersection, unless it's on an edge.
Complete the __init__, in_bounds, and neighbors methods.