lajkonikz / town-country-river

Yet another attempt to make better use of free time :)
1 stars 0 forks source link

Add game management #5

Closed armandomiani closed 3 years ago

armandomiani commented 3 years ago

-

amsoares commented 3 years ago

To make it consistent with the whole idea of keeping the code controlling the whole game, we should also implement an array of "already used words" per category.

something like:

"category": "color",
"said": ["blue", "blank", "beige"]

and some methods that would verify:

boolean isUsedWord = game.isUsedWord(word);
boolean isValidInitial = game.isValidInitial(word);