Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 737 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 737 Bytes

Russian-Roulette Javascript

Game russian roulette HTML and Javascript created and developed by Daffa Ahmad Ibrahim

revolver

Demo

You can Click here for demo.

How to install

  1. Clone repository
git clone https://github.com/Daffabot/russian-roulette.git
  1. Open russian-roulette/index.html file in your browser

Example Usage

function fireit(){
var spin = Math.floor(Math.random()*6);

if (spin<=document.fire.bullets.value-1) {
//Use code to declare defeat
}
else{
//Use code to declare a win
}
}

Collaborators

Feel free to contribute! You can collaborate with us.