Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_path(source,destination):
- """
- Obtain and return a list of the coordinates of all tiles between two points.
- """
- (current_x,current_y) = source
- (target_x,target_y) = destination
- dx = target_x - current_x
- dy = target_y - current_y
- gradiant = float(dy)/dx
- # ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement