SolveStatus

enum SolveStatus(successMessageId: Int) : Enum<SolveStatus>

Enumeration class containing the possible game statuses depending on whether user solves the puzzle or opts to play the solution walkthrough instead.

Parameters

successMessageId

ID of the string corresponding to the success message displayed.

Constructors

SolveStatus
Link copied to clipboard
private fun SolveStatus(successMessageId: Int)
Creates an enumeration class containing the possible game statuses after the user solves the puzzle.

Entries

USER_SOLVED
Link copied to clipboard
USER_SOLVED(R.string.user_solved)
The user solved the puzzle but did not register a new record for the fewest number of moves or the fastest time.
FEWEST_MOVES
Link copied to clipboard
FEWEST_MOVES(R.string.fewest_score)
The user registered a new record for the fewest number of moves.
FASTEST_TIME
Link copied to clipboard
FASTEST_TIME(R.string.fastest_score)
The user registered a new record for the fastest time.
FEWEST_AND_FASTEST
Link copied to clipboard
FEWEST_AND_FASTEST(R.string.high_score)
The user registered a new record for both the fewest number of moves and the fastest time.
COMPUTER_SOLVED
Link copied to clipboard
COMPUTER_SOLVED(R.string.computer_solved)
The user opted to display the solution returned by the app (via A*).

Properties

successMessageId
Link copied to clipboard
val successMessageId: Int
ID of the string corresponding to the success message displayed.

Inherited properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int