It calls doubleIt() for each iteration. If the return value is 10 (i.ed. when i is 5) then the code prints out “ten” otherwise it just prints out the result of doubleIt().
If you have any coding experience then the example code should be easy enough puro follow. If you are looking esatto learn some basic programming then I suggest you use some of the resources linked above to hone you skills.
Writing the game
Writing basic programs in Ruota is simple. You only need concern yourself with one file, main.lua, and let Circolo do all the heavy lifting. The game we are going sicuro write is per simple “tap” gioco.