Launching a game with standard settings
Start by putting five blue pawns on the Niryo One’s slope, then, launch the script: “python3 morpion_vision.py”.
Note: When you play for the first time, or when the slope has been moved, the robot will have to know its new position. Check the “Setting-up the slope” part of this demonstration to know how to do so.
You start the game
- Place a pawn on the workspace wherever you want.
- Once the pawn is placed on the workspace, slightly move the robot’s arm to indicate your turn is over.
The robot will scan the workspace and play its turn. You can also connect a button in the robot’s GPIO-input to indicate your turn is over.
- Repeat the operation until the end of the game.
When the game is over, the robot will go back to its standby position.
The robot starts the game
In order to indicate that it is the robot’s turn, slightly move its arm. It will then scan the workspace and place its pawn. Once your pawn is on the workspace, move the robot’s arm again and so on, until the end of the game