First basic-game doc draft
This commit is contained in:
parent
8c7a8f9777
commit
a3894eda03
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@
|
||||||
|
|
||||||
// Probe-Function: checks, whether a given "effort" is succesfull, according to the rules of DS
|
// Probe-Function: checks, whether a given "effort" is succesfull, according to the rules of DS
|
||||||
// Not yet implemented: Tests for values larger than 20
|
// Not yet implemented: Tests for values larger than 20
|
||||||
|
// 1
|
||||||
var dice = function(probe) {
|
var dice = function(probe) {
|
||||||
var diceval = Math.floor(Math.random() * (21 - 1)) + 1;
|
var diceval = Math.floor(Math.random() * (21 - 1)) + 1;
|
||||||
if ( diceval <= probe ) {
|
if ( diceval <= probe ) {
|
||||||
|
|
Loading…
Reference in a new issue