diff --git a/games/ms1/minesweeper.lua b/games/ms1/minesweeper.lua index 0a9fa4a..b8eb18c 100644 --- a/games/ms1/minesweeper.lua +++ b/games/ms1/minesweeper.lua @@ -164,9 +164,14 @@ function game() print("You lost!") print("Press any key to continue...") local e = event.pull() + e = event.pull() end end +function time(s) + return string.format("%ds",s) +end + -- Program starts print("Hold Ctrl+Alt+C to terminate if stuck") os.sleep(1) @@ -177,7 +182,7 @@ while true do term.clear() print("New game? [y/n]: ") k = term.read() - if k ~= "y" then + if k ~= "y\n" then break end -end \ No newline at end of file +end