endGame

private fun endGame(solveStatus: SolveStatus)

Ends the game that is currently in session, in effect stopping the timer, displaying the pertinent success message, and resetting the variables in preparation for a new game if the user was able to solve the puzzle or for displaying the solution, otherwise.

Parameters

solveStatus

Game status depending on whether the user solves the puzzle or opts to play the solution walkthrough instead.