First basic-game doc draft

This commit is contained in:
Oliver Rümpelein 2014-10-22 18:08:51 +02:00
parent 8c7a8f9777
commit a3894eda03
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@
// Probe-Function: checks, whether a given "effort" is succesfull, according to the rules of DS
// Not yet implemented: Tests for values larger than 20
// 1
var dice = function(probe) {
var diceval = Math.floor(Math.random() * (21 - 1)) + 1;
if ( diceval <= probe ) {