Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version = "0.0.1"
- rock = {
- " ------------ ",
- " | | ",
- " | | ",
- " | | ",
- " | | ",
- " ------------ ",
- }
- sis = {
- " \ / ",
- " \/ ",
- " [] ",
- " 0 0 ",
- }
- paper = {
- " ------------ ",
- " | | ",
- " | | ",
- " | | ",
- " | | ",
- " ------------ ",
- }
- function printDes(image,postionX,positonY)
- for y=1, #image do
- term.setCursorPos(postionX,positionY + y - 1)
- term.write(image[y]) -- missed a ) here
- end
- end
- local w,h = term.getSize()
- function printC(str, y)
- term.setCursorPos(w/2 - #str/2, y)
- term.write(str)
- end
- function Header()
- printC("Rock Paper Sissiors ++ v"..version,1) -- error misses a number for the Y hight
- printC(string.rep("[]", w), 2) -- missed a " here
- end
- Header()
Advertisement
Add Comment
Please, Sign In to add comment