Need Helping Creating This Program


#1

I am looking for a program that can solve a maze. Like it lights up and defines things and such.


#2

Hi Siege, to be honest it’s a little difficult to understand the detail purpose of your program. If you wish to control the mBot go randomly left or right, you can try with the program as below, with a little adjustment for sure to fit your whole program. If I understood your idea wrongly, please let me know more details about your design and we can discuss any further. Feel free to contact me on support@makeblock.com
image


#3

The purpose of the program is to navigate a maze. I understand your code here, now how do I create a variable that can count if it makes three turns.


#4


#5

That sounds interesting.


#6

Hi Siege,

here is your code with some corrections.

Tip: If you want to get out of a maze, always turn on one side. There is a better method, but it is the easiest.


#7

Thank you! My dude! Thanks you I figured out how to do it!


#8

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.