美文网首页
Scratch - maze solver

Scratch - maze solver

作者: yzhou79 | 来源:发表于2022-02-16 15:05 被阅读0次

在Scratch的ideas页面,看到了maze的example,练习了下后,突发感想,可不可以自动解决maze问题呢?

大概思路是用颜色传感器去感知周边的黑色边框,类似于小车循迹的颜色传感器,但是这里是直线,所以没有S弯的问题,只有左拐和右拐,问题简化了很多。

<iframe src="https://scratch.mit.edu/projects/644610721/embed" allowtransparency="true" width="485" height="402" frameborder="0" scrolling="no" allowfullscreen></iframe>

相关文章

网友评论

      本文标题:Scratch - maze solver

      本文链接:https://www.haomeiwen.com/subject/achdlrtx.html