Skip The Maze Game

Опубликовано: 25 Июль 2026
на канале: Rahul kumar
261
7

Day 6 : #100DaysOfCode challenge

Learning the python functions in a different way.

Reeborg (The robot) was exploring a dark maze and the battery in its flashlight ran out.

Write a program using an if/elif/else statement so Reeborg can find the exit.

The secret is to have Reeborg follow along the right edge of the maze, turning right if it can, going straight ahead if it can’t turn right, or turning left as a last resort.

What you need to know
----------------------------------------------
The functions move() and turn_left().

Either the test front_is_clear() or wall_in_front(),
right_is_clear() or wall_on_right(), and at_goal().

How to use a while loop and if/elif/else statements.

It might be useful to know how to use the negation of a test (not in Python).
---------------------------------------------------------------------------------------------------------------------------
#python #learningPython #ml #ai #webdev #love
#100Days100Projects #udemy #webscrappin #learningbyplaying #learningbydoing

music credit: Original Tetris theme (Tetris Soundtrack)