Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Set up the monitor on the right side
- local monitor = peripheral.wrap("top")
- monitor.setTextScale(1)
- monitor.clear()
- -- Define the smiley face pattern
- local smileyFace = {
- " ** ",
- " * * ",
- "* *",
- "* \\__/ *",
- " * * ",
- " ** "
- }
- -- Function to display the smiley face on the monitor
- local function displaySmileyFace()
- for i, line in ipairs(smileyFace) do
- monitor.setCursorPos(1, i)
- monitor.write(line)
- end
- end
- -- Main program
- displaySmileyFace()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement