I wanna start a little experiment and see what the results will be or if it works at all.

Following forum game:
With every post in this thread, a programm code should grown. This means everyone who makes a post in this thread adds another piece of code.

Here are some rules:
  • only one logical code line per post (a code line ends a semicolon) OR an if comparison (but without instructions, instruction can be added in the next post) OR a loop (while, do, for, also without instructions inside the winged brackets, they can be added in the next post) OR a new function (with parameters but not with instructions, they still can be added in the next post)
  • code must be compilable with A8.4 commercial version, if the code gives errors, the made post does not count
  • you can add your piece of code whereever you want, you don't need to add it at the end of the current code
  • you are not allowed to delete previous added code or modify any code
  • you have to post the complete code, including your added stuff with the forums code tags. To let other users see what you've added, you have to post the stuff you added in another code-tag.
  • use code indention for different scopes
  • you are not allowed to make two or more posts in a row, you have to wait until another user made a post after your's

I begin with the first post