Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tic = {1,0,2,2,1,2,2,2,1}
- function tictotac(x)
- if x == 0 then
- return " "
- elseif x == 1 then
- return "x"
- elseif x == 2 then
- return "o"
- end
- end
- print(" "..tictotac(tic[1]).." | "..tictotac(tic[2]).." | "..tictotac(tic[3]).." \n———+———+———\n "..tictotac(tic[4]).." | "..tictotac(tic[5]).." | "..tictotac(tic[6]).." \n———+———+———\n "..tictotac(tic[7]).." | "..tictotac(tic[8]).." | "..tictotac(tic[9]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement