Mercurial > louis > peeves
view graphs_trees/find_flag/question.rst @ 0:20fea762903e
Import some exercises and solutions
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Sat, 29 Jun 2013 19:30:31 -0700 |
parents | |
children |
line wrap: on
line source
Find the Flag ============= Given: .. code-block:: python def maze_has_flag(x, y): # x, y coordinates → bool return x == 3 and y == 5 # for example def maze_has_move(x1, y1, x2, y2): # can you move from point a to b → bool return True # for example Write this function to find the flag in the maze and display the traversed coordinates:: maze_find_flag(size_x, size_y, start_x, start_y)