TINKER PiEDESIGN IN INDIA
Basic

Rock Paper ScissorsPlay Rock Paper Scissors against the AI Cube with your hand.

You write a short TinkerPie Python program by following the Code guide in the workspace, then press Run. The sample program and step-by-step guide are always there to help.

What you will learn

  • Turning finger counts into game moves
  • if / elif / else decisions
  • Random choices

What you need

  • TinkerPie AI Cube (ESP32-S3 N16R8 + camera) and a USB-C data cable, or
  • Virtual Cube: any laptop, tablet or phone camera

Steps

  1. Choose AI Cube or Virtual Cube at the top.
  2. Type the program from the Code guide, then press Run.
  3. Show a fist (Rock), two fingers (Scissors) or an open hand (Paper).
  4. The cube picks a move at random and shows who wins.

How it works

The hand AI finds 21 points on your hand and works out which fingers are up. Your program turns the finger count into a move, lets the computer pick a random move, then compares the two with the game rules.

Coding concepts

Loop
"while True:" repeats the indented lines once per camera picture.
List
moves holds three words; moves[1] is the second one.
Random
tp.random(0, 2) gives 0, 1 or 2.
and / or
Join several conditions into one if.

Expected output

Your move, the cube's move and the winner, for example "You win! Paper vs Rock". A new round starts every 2 seconds.

Challenges

  • Keep score: count your wins and the cube's wins.
  • Make it "best of 5".
  • Add a beep when you win.

More Basic projects

Basic10 minComputer Vision, Object Detection

Face Detection

Find every face in the camera picture and draw a box around it.

  • What a "detector" is
  • Bounding boxes and confidence
  • Why light matters for AI
Hardware: AI Cube or any webcamAI Cube: on the AI Cube chip · Virtual Cube: laptop or phone camera
Basic15 minComputer Vision, Image Classification

Face Recognition

Teach the AI your name, then it says who is in front of the camera.

  • Detection vs recognition
  • Saving a face "signature"
  • Matching with a distance threshold
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera
Basic10 minComputer Vision, Gesture Recognition

Finger Counting

Show your hands and the AI counts your fingers, from 0 to 10.

  • Hand landmarks (21 points per hand)
  • Turning points into rules
  • Testing an AI fairly
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera