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

Former-commit-id: ec99ac305c
This commit is contained in:
Zack Scholl 2017-03-24 07:14:34 -06:00
parent 9d9918966a
commit e8959d8923

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
}