Coder Social home page Coder Social logo

rock_scissors_paper_steem's Introduction

RSP game is the standart Rock-Scissors-Paper game played on Steem blockchain.

The basic rules are standart:

  • Rock crushes Scissors
  • Scissors cuts Paper
  • Paper folds Rock

The player makes a choice and a bid of 0.1SBD is transferred to game AI.

The transfer is done via Steemconnect so it is safe.

Since no key ( WIF ) is stored, every bid needs to be verified by steemconnect.

The AI choice is determined according to the unique transaction ID generated by this transfer. The AI choice rules are clearly defined as follows :

The transaction ID is a hexadecimal number, so there are 16 choices. To make the game equal chance, if the transaction ends with "0" it is considered as null and 90% of the bid is returned.

The winning conditions are as follows :

How to play

  • Go to the game website : https://rspgame.neocities.org/

  • Enter your UserName and press UserName button

  • You will be directed to Game Screen

  • Press on one of the icons ( Rock, Scissors or Paper ) according to your choice.

  • You will be directed to SteemConnect with the choice in memo in a pop-up window.

  • Validate the transfer

  • The UI will inform you of the outcome.

  • The player can also see the overall status of the wins and losses in total.

  • The player can also see the status on the blockchain

rock_scissors_paper_steem's People

Contributors

firedreamgames avatar

Stargazers

Ercument ESER avatar

Watchers

James Cloos avatar Ercument ESER avatar

Forkers

doctorlai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.