end
, which ruins the competitive integrity of the game for others.
-- Function to display hall status function displayHallStatus() for i = 1, 10 do if hall[i].clue then print("Room " .. i .. ": Clue found!") elseif hall[i].occupied then print("Room " .. i .. ": Occupied") else print("Room " .. i .. ": Empty") end end end
if cueStickFound then print("\n Congratulations, Jack! You've found the mysterious cue stick!") print("You're now the best player in the hall!") end