1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Require random names to be smaller

This commit is contained in:
Zack Scholl 2017-03-24 07:14:34 -06:00
parent 931a0a7c62
commit ec99ac305c

View File

@ -68,7 +68,7 @@ func randomAlliterateCombo() (combo string) {
for {
animal := randomAnimal()
adjective := randomAdjective()
if animal[0] == adjective[0] { //&& stringInSlice(strings.ToLower(adjective+animal), takenNames) == false {
if animal[0] == adjective[0] && len(animal)+len(adjective) < 18 { //&& stringInSlice(strings.ToLower(adjective+animal), takenNames) == false {
combo = adjective + animal
break
}