mirror of
https://gitlab.com/EternalWanderer/dice-roller.git
synced 2024-11-28 21:03:51 +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:
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue