9

Fully Working, One or Two Player, Rock-Paper-Scissors Game (AI Included)

9 diamonds

What is Schemagic? Read the Schemagic feature announcement for more info.

  • 1,426
    Views, 14 today
  • 386
    Downloads, 1 today
  • 15
    Comments
  • 1
    Favorites
  • Flag / Report

Get Embed Code

Forum:
HTML:
Link:
avatar Tminator
Level 35 : Artisan Crafter
Posted 01/02/12 6:59:02 pm , last updated: 01/21/12 12:36:28 am
01/02/12
I have created a one or two player rock-paper-scissors game in Minecraft!

It's nothing fancy, just a simple little game for a server or single player world.

If you want older versions, click the mediafire downloads below. If you want the latest version, use the link underneath the pictures

How to play Rock-Paper-Scissors In Minecraft

Multi-player: The two players stand in seperate rooms and each hit one of the three available buttons (either rock, paper, or scissors) Once both players have picked, a display above their heads shows who has one, or if it was a tie.
The display will light up for 4 seconds before automatically resetting for more Rock-Paper-Scissors fun! :D

Single-player: Hit the lever in Player 1's game room (Turn right when you enter) to switch between single and multi-player modes. Double check you are in the right gamemode by using the redstone torch next to the lever. In this gamemode player 2 is a "computer" or more accurately, an AI (Artificial Intelligence) When the other redstone torch is lit, that means the computer is ready for you choice. 5 seconds after your choice has been made the light will turn off signifying that the computer is "thinking." The wait time varies from 5-45 seconds while the AI makes it's decision.(Wroking on shortening that) The pistons will extend with the colour of wool of the winner.

(Note: Single-player mode still has a couple bugs, see below)

Colour Legend:
Red activating - Player 1 wins
Blue activating - Player 2 -or- Computer wins
Black activating - Tie

I Wonder How It Works?
(No one's actually going to read this but if you want to, it's here ;)

Both Gamemodes:
Well, after the first button is pushed, a bank of Memory Cells (RS NOR Latches) assures that the redstone charge won't run out until the second player chooses his pick. After both choices have been....chosen, the redstone charge is siphoned through a 9-bit decoder before reaching a wall of AND Gates.

The AND Gates are positioned so that only the combination chosen makes its way to the final stage, a redstone torch ladder, that, when a charge is received, sends it along a path to the win detector, and the pistons push out. The win detector is quite simple and uses a wall of NOT Gates (Inverters) to power all the pistons when a charge is received. The series of redstone connecting to the torch ladder also goes underground and resets the circuit after a 4 second delay.

Single-player:
Hitting the lever sends a signal underground to the AI and releases a "safety" so to speak. This needs to be included so that in multi-player mode, the AI doesn't make the choice before Player 2 can. Once the lever has been switched, hitting one of the buttons sends a pulse to disable the second safety and engages the AI. The AI uses a three torch burnout system (designed by the VoxelBox) plus a wall of NOR Latches to ensure only one of the three choices is selected. As this is a very complicated piece of machinery this is about as far in-depth as I can go without actually being beside you holding a model of it explaining.

Older versions:

1.0 - Manual Reset Button + Torches for the win detector+ Multi-player mode only+ single colour display: http://www.mediafire.com/?tajrl9x9ate7zd8

2.0 - Automatic Reset+ Torches for the win detector+ Multi-player mode only+ Single colour display: http://www.mediafire.com/?t3itmrkr5d5dfmw

3.0 - Automatic Reset+ Pistons for win detector+ Multi-player mode only+ Single colour display: http://www.mediafire.com/?krf6p36u9clrfpc

4.0 - Automatic Reset+ Pistons for win detector+ Single and Multi Player modes+ Single colour display:
http://www.mediafire.com/?5i3d2b3ulxi7j33

Additional Details

If you like this project, or want to support me in later projects, please give a diamond here or on them, they are much appreciated :D

Other projects:
Tic Tac Toe -  http://www.planetminecraft.com/project/fully-working-two-player-tic-tac-toe-game-most-compact-design/ 

Please leave feedback or suggestions below, as well as any bugs you find :D

Known Bugs:

Multi-player: There are currently no bugs for multi-player

Single-player: The decision taking time for the AI is way too long sometimes, working on fixing this.
Progress:
100
Tags:Mine, Craft, Rock, Paper, Scissors, Game, Carnival, Fun, Redstone, Device, Contraption, Awesome, Two, Player, Working, One, Artificial, Intelligence, Single, Mode, Redstone Device
Credit:VoxelBox for burn out torch idea

Update #6 : 01/21/2012 12:36:28 am1/21/12

+Added video explaining all the wiring and giving a demonstration

5.0 : 01/05/2012 2:25:20 pm1/05/12

+ Added a three colour win detector above each player
- Removed Mini win detector for P1
*Redid Wiring
*Cut down size of schematic

Update 4.1 : 01/04/2012 6:44:31 pm1/04/12

+By Popular Demand, World Save Added

Version 4.0 : 01/04/2012 5:23:00 pm1/04/12

+Single-player Mode Added
+Mini-Win Detector for Player 1 Added
+AI Added (Underneath Structure)
*Completely redid the game room

Version 3.0 : 01/03/2012 2:17:03 pm1/03/12

- Torch display on the win detector removed
+ Piston wall on the win detector added

Version 2.0 : 01/02/2012 2:17:11 pm1/02/12

- Manual reset button removed 
+ Automatic reset added (Delay of 4 seconds)

Join us to post comments.

Comments : 15

1 - 15 of 15

Cyprezz
Admin / Site Creator
Level 65
High Grandmaster Cyborg
January 21, 2012, 3:43 pm

Awesome project!  Debug scissors! XD

Tminator
Level 35
Artisan Crafter
January 22, 2012, 4:01 am

Thanks :D

douglasg14b
Level 4
Apprentice Architect
January 6, 2012, 10:06 am

very nice, would you like your project on the redstone development foundations website. We are going to be doing a weekly non-rdf build and build comparisons. you can drop me a message on here or on our website/forums therdf.net  thanks!! 

Tminator
Level 35
Artisan Crafter
January 6, 2012, 12:43 pm

That would be a big honour and I'd be glad if you would put it on :)

childszac2000
Level 1
New Miner
January 4, 2012, 12:52 pm

Can you get a world save I don't have mc-edit

Tminator
Level 35
Artisan Crafter
January 4, 2012, 1:46 pm

World save added :)

MikeABC123
Level 1
New Miner
January 4, 2012, 12:38 pm

do a world save!

Tminator
Level 35
Artisan Crafter
January 4, 2012, 12:46 pm

my world is too insanely random XD


MikeABC123
Level 1
New Miner
January 4, 2012, 1:14 pm

but i wanna play it and my pc doesnt work 4 schematic

Tminator
Level 35
Artisan Crafter
January 4, 2012, 1:46 pm

Okay, world save added :)

MikeABC123
Level 1
New Miner
January 4, 2012, 2:07 pm

yay! thank you!

Theodor488
Level 14
Journeyman Zombie
January 3, 2012, 8:19 pm

amazing


0123cheese3210
Level 5
Apprentice Fisherman
January 3, 2012, 9:39 am

+1

carvine1
Level 28
Expert Dragon
January 2, 2012, 7:20 pm

nice design... but i wont ever understand the redstoning... even if the best of the best tries to teach me^.^
you deserve a 1+

Tminator
Level 35
Artisan Crafter
January 2, 2012, 7:23 pm

Thanks :)

1 - 15 of 15