Skip to content
Rock-paper-scissors game with Robots & Raiden Network, on Ethereum. Star Wars flavored.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client Client - add alert when off-chain payment cannot be sent to guardian Jan 5, 2019
docs Update Readme with game sequence Jan 3, 2019
server Server - both players win if their moves are the same Jan 4, 2019
HowToPlay.md Create HowToPlay.md Jan 4, 2019
LICENSE Initial commit Dec 17, 2018
README.md Update README.md Jan 4, 2019

README.md

CryptoPlayerOne

Want to play? Go to https://cryptoplayer.one and read our Game Guide

About

Game: https://www.youtube.com/watch?v=f91oYEWmLWo

Behind the Scenes: https://www.youtube.com/watch?v=vcFf9fDgmfo

Robots Stream: https://www.youtube.com/watch?v=mMCljzH3lVQ

A rock-paper-scissors game where the player does micropayments on the Raiden Network in order to choose a move for his robot friend. Winners get rewarded.

Unlimited number of users, each user chooses a player (Dark Vader / Blue Yoda) and a move (Rock / Paper / Scissors). The GameGuardian chooses a move for each of the two players based on the votes of the majority. He then calculates the winning move, the total amount of tokens sent by the users, keeps 10% for hosting services and rewards all the users who chose the winning move (winner_reward = total_token_reward / number_of_winners)

!Important

This is not production ready - play at your own risk if you want to give a hand at testing the game or the new Raiden Network release.

How To Play

  • install and run a Raiden Network node. The current game version only supports the Red Eyes release.
  • go to http://cryptoplayer.one/ and follow the instructions, which will ask you to give the game domain access to your Raiden Node (!this is risky, because the game WILL make payments on your behalf, so do not deposit more tokens than you are willing to lose)

Built on

Components

GameGuardian Server, GameGuardian Raiden Node & GameGuardian Client are running on an Ubuntu Virtual Private Server

Dark Vader RobotServer & Blue Yoda RobotServer

GameGuardian Server

  • Loopback-based server
  • manages the games
  • keeps track of user chosen moves
  • calculates the winners
  • connects to the GameGuardian Raiden Node to verify received payments & to send the rewards to the winners
  • sends the commands to the robots, to play out the game duel accordingly

GameGuardian Raiden Node

  • receives user payments & sends rewards

Game Client

  • Vue.js based client that:
  • sends the encrypted (hashed) move data to the GameGuardian Server after receiving a payment identifier
  • connects to the user's Raiden Node if given access, to send the payment for the chosen move with the above payment identifier
  • controls the game time intervals based on the received values from the GameGuardian Server
  • sends the unencrypted move data to the GameGuardian Server after the first stage of the game is finalized
  • sends a signal to the GameGuardian Server that the game has ended and it expects the game results & robot duel

Game Sequence

Game Sequence

You can’t perform that action at this time.