Leçon 1,
Chapitre 1
En cours
Robot intelligent – Logique programmation
Introduction
You’ve been well-informed agents that your mission is to build a Smartphone controlled robot. It will be controlled using the evive Gamepad app. Once the robot powers up, all he must do is carefully understand the instructions that you give and then move according to them; and he should stay where he is unless you give any instruction.
On the Gamepad in the evive App, there are four buttons:
- Up
- Down
- Left
- Right
Instructions
When we press Up, the robot should move forward.
When we press Down, he should move in the backward direction.
When we press Right, he should turn towards his right.
And, we when Left, he should turn towards his left.
In case nothing is pressed, he should budge even an inch.
Flow Chart
Below is the complete flowchart: