More string formatting

This commit is contained in:
Nox Sluijtman 2022-07-29 12:57:56 +02:00
parent 658afc824a
commit af7935ce46

View file

@ -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)
} }
} }