Jump to content




Code for no reason


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

#1 ds84182

  • Members
  • 184 posts

Posted 15 March 2013 - 08:35 AM

Basically, this is how it goes...

The whole forum post is going to contain code. This code is not valid lua. We come up with the coding rules as we go. When you post, you have to come up with a new rule (that doesn't contradict another rule) and write sample code for it that uses the previous rule and your rule! Because this is not valid lua, this is not an outlet for valid code. You also need to "run" your sample code in your mind. And in you sample code, you need to print out any values that you make to the output.

Example:
Person 1:
New rule! You can add string together with +!
print("Hello"+", "+"world!")
Output:
Hello, world!

Person 2:
New rule! You can multiply strings with * and a number!
print(("Hello "*2)+", "+"world!")
Output:
Hello Hello , world!

So basically:
  • Make a new code rule.
  • Make sample code that uses BOTH your new rule and the previous rule.
  • "Run" your code in your head.
  • Show us the Output.


#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 15 March 2013 - 10:16 AM

Nope. Been denied before.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users