rafacODEZ/minesweeperGUI

Game time

Closed this issue · 1 comments

In InputOutput.py, games timing doesn't work. Time should start at zero, increase by one second as game goes on and only stops when game has ended.

Completed. 3 new methods are created in InputOutput.py, startTimer, IncreaseTimer, and killTimer. The timer was created using tkinters .after() universal feature that excuses a function after a specified time (e.g. 1 second). Revealing a cell or placing a flag on a cell starts the timer. Winning, losing, or ending the game stops the timer.