GameState class
The state of a given game.
Properties
-
guesses
→ List<
Word> -
All the previously guessed words.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
letterGuesses
→ Set<
Letter> -
A set of all the letters that have been play. Useful for creating a
keyboard state.
no setter
- maxGuesses → int
-
The maximum number of guesses allowed in this game.
final
- remainingTurns → int
-
The number of turns remaining in this game.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ GameStatus
-
This game's current status.
getter/setter pair
- wordle → String
-
The goal word that is too be guessed.
final
Methods
-
guess(
String guess) → GameStatus - When a guess is made, the word is evaluated and returns the appropriate GameStatus. status is also updated when this method is invoked.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited