Skip to content

Daffabot/russian-roulette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.