Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions games/ms1/minesweeper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
end