mirror of
https://gitlab.com/EternalWanderer/dice-roller.git
synced 2024-11-29 05:13:50 +01:00
More string formatting
This commit is contained in:
parent
658afc824a
commit
af7935ce46
6
main.go
6
main.go
|
@ -47,7 +47,11 @@ func main() {
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
||||||
fmt.Println(string(ColorYellow), "Rolling dice...:", string(ColorReset))
|
if diceThrows <= 1 {
|
||||||
|
fmt.Println(string(ColorYellow), "Rolling die...:", string(ColorReset))
|
||||||
|
} else{
|
||||||
|
fmt.Println(string(ColorYellow), "Rolling",diceThrows,"dice...:", string(ColorReset))
|
||||||
|
}
|
||||||
Cast(surfaces, diceThrows)
|
Cast(surfaces, diceThrows)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue