Skip to content

andreterceiro/jankenpo-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jankenpo-arduino

Introduction

In this Arduino project we can play Jankenpo against the computer. As you can see in this demonstration, you have in the circuit three buttons and 2 RGB LEDs. With the buttons you can choose you option (paper, rock or scissors). The first RGB LED will show the computer option (RED = paper, GREEN = rock, BLUE = scissors). You can think that the alphabetic order of paper/rock/scissors will be mapped to the order red, green and blue (RGB). And the other LED will show you the winner (RED = you loose, GREEN = you win, BLUE = draw).

As you can see in the video, the flow of the program is simple. First of all the first RGB LED will have all the colors off. And the second LED will be white (all colors on). The system is informing you that it is waiting you choose (you can choose an option pressing a button). After you pressing a button, the first and the second RGB LEDs will be RED, GREEN or BLUE, as you can see in this table: true-table.png.

I will add a schematic diagram of the circuit soon.

This table is the table that I talked about in the video. It showes the colors of the two RGB LEDs. It depends of the random choice of the computer and the result (win, loss or draw):

true-table.png

The same table in portuguese:

This table

And this video explain this table:

tabela-verdade.png

Videos showing the execution:

https://youtu.be/GkwfqYYZ-VA

https://youtu.be/eoFyGKMtq78

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages