Browse Source

Don't hard code number of dice/rolls

tags/v0.1.3
bertieb 3 years ago
parent
commit
2fc974aa3a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dice.ts

+ 1
- 1
dice.ts View File

@@ -5,5 +5,5 @@ let number: number = 4;
for (let i = 0; i < 10; i++) { for (let i = 0; i < 10; i++) {
console.log("--------------------"); console.log("--------------------");
console.log("Rolling", number, asphodice); console.log("Rolling", number, asphodice);
console.log(asphodice.roll(4));
console.log(asphodice.roll(number));
} }

Loading…
Cancel
Save