In this video I’m gonna show you a Lego Mindstorms EV3 build/project of mine, a Color memory game I made. It is a bit similar to the simon game. It has a rotating baseplate with green, yellow, red and blue, that can each be positioned right under the color sensor. If I get an entire sequence of colors right, the brick adds another color to the sequence and the game goes on. However, if I get the sequence wrong, the brick plays a buzzer sound and the game ends. How the code or programming works is each time a random color is said by the brick it is added to the questions array. When I start giving my answers, they are stored in a separate answers array. Once the lengths of both the arrays are equal, The order of the colors in the answers array is checked. If everything matches, another color is added and the game continues. However, if the arrays do not match, it plays the buzzer sound and the game ends. If you want to know more about the code or programming let me know down below in the comments. This game is a great use of a color sensor and is fairly easy to build however, the code might be a bit tricky. If you would like to see various unique Mindstorms EV3 creations and ideas please consider supporting me by subscribing. Thanks for watching.
Some of my other popular videos –
Lego mindstorms EV3 claw machine –
working claw machine with no mindstorms and no power functions –
#lego#mindstorms#legomindstorms#ev3#simongame#memorygame#legogame
Nguồn: https://liberty2010.org/
Xem thêm bài viết khác: https://liberty2010.org/game/
Cool
nice! i subbed 🙂
Awesome