Jump to content




Explain the Code


  • This topic is locked This topic is locked
1 reply to this topic

#1 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 20 June 2013 - 10:04 AM

I got this idea where you learn and have fun at the same time, You simply create a code that someone will then explain what it does and then create a code themself that the next person obviously will explain etc.
I thought this also could be good for those new to Lua or programming to learn something as well.


Here's a little example

Quote

print("This is an example")

The code prints out the text: This is an example

function clear()
  term.clear()
     term.setCursorpos(1,1)
end

clear()

And ofcourse your codes can't be too long so I'll say that the maxium shall be 10-20 lines long..

I would be best if you put you code in a spoiler so this doesn't become a wall of code
For you who don't know how to create a spoiler here's how:
[.SPOILER]
Stuff inside spoiler here!
[./SPOILER]

And remember to remove the "." Since that shouldn't be there..

But you must make sure that your code works!
And also... No malicious codes!

Anyway.. Let's begin! :)
I'll start with something simple

Spoiler



#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 20 June 2013 - 11:38 AM

Uh, again, no. We've had quite a few games along this line be posted.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users