so far: faj2E, osztaly2E, kepzettsegek2E (with some bugs)
This commit is contained in:
2024-01-09 22:58:50 +01:00
committed by Bálint Mórász
parent e51bde66da
commit d56d7c9899
31 changed files with 1883 additions and 95 deletions
@@ -0,0 +1,8 @@
export function dAny(sides: number) {
return Math.floor(Math.random() * sides) + 1;
}
export function d6() {
return dAny(6)
}
@@ -0,0 +1,3 @@
export function SignedNumberToText(val: number) : string {
return val === 0 ? " 0" : (val > 0 ? '+'+val : val.toString())
}