7 ms·
Nice! I was going to say maybe validate that the input is a single word, but the phrases people have come up with are very fun, and I wonder if limiting it to
by garbagepatch 2y ago
Nice!
I was going to say maybe validate that the input is a single word, but the phrases people have come up with are very fun, and I wonder if limiting it to a single word would quickly turn into multi-word-words-using-dashes.
Looking at the prompt[0], I think repeating each word twice might get costly, wonder if you can rephrase the second part as "In a battle between the first word and the second, who would win?"
Adding a character limit like others mentioned will also bring more creativity from players.
[0] https://github.com/BenLirio/word-battle-server/blob/master/src/functions/battle.ts#L90 https://github.com/BenLirio/word-battle-server/blob/master/s...