View Single Post
  #22 (permalink)  
Old 10-25-2007, 01:36 AM
limo limo is offline
Newbie
 
Join Date: Oct 2007
Location: Australia
Posts: 14
Rep Power: 0
limo is on a distinguished road
Default

This works but it's an extremely kludgy implementation, I wouldn't recommend beginners learn from this. What if the grid was 4x4 or 10x10, more coding cases? Hint: Use the min max algorithm or breadth first search for a better implementation. That's more advanced programming though.
Reply With Quote