CCFormat - A simple way to format your cur...
lolmaker2002 30 Nov 2016
this is just a thing i wrote in like 40 mins (with no idea what i was going to make, so i was brainstorming for like an hour),
i also wrote this when i had to go, so i cant add screens or anything, file is in desc
PASTEBIN URL: AaWnayNL
EDIT: this was also a little test for me to see if i could work with tables (never worked with them before, or at least not intensively) and i think it worked out pretty well.
Edited by lolmaker2002, 30 November 2016 - 06:00 PM.
i also wrote this when i had to go, so i cant add screens or anything, file is in desc
PASTEBIN URL: AaWnayNL
EDIT: this was also a little test for me to see if i could work with tables (never worked with them before, or at least not intensively) and i think it worked out pretty well.
Edited by lolmaker2002, 30 November 2016 - 06:00 PM.
lolmaker2002 30 Nov 2016
Ale32bit, on 30 November 2016 - 05:46 PM, said:
Spoiler
Made it betterEDIT: i've been using computercraft for a long while now but i still dont get half of it, i usually just get lucky with my programs and just roll with it.
Edited by lolmaker2002, 30 November 2016 - 05:53 PM.
lolmaker2002 30 Nov 2016
Tazkazz 13 Dec 2016
Sewbacca, on 06 December 2016 - 03:59 PM, said:
For loops are very important in Lua.
In every programming language. *
SquidDev 14 Dec 2016
Tazkazz, on 13 December 2016 - 08:25 PM, said:
Sewbacca, on 06 December 2016 - 03:59 PM, said:
For loops are very important in Lua.
Edited by SquidDev, 14 December 2016 - 01:10 PM.
Sewbacca 04 Mar 2017
SquidDev, on 14 December 2016 - 07:33 AM, said:
Tazkazz, on 13 December 2016 - 08:25 PM, said:
Sewbacca, on 06 December 2016 - 03:59 PM, said:
For loops are very important in Lua.
SquidDev 04 Mar 2017
Sewbacca, on 04 March 2017 - 07:25 PM, said:
For a simple for loop, you could have something like this:
local function printTimes(count, string) if count <= 0 then return else print(string) return printTimes(count - 1) end end printTimes(10, "Hello")This will print the string "Hello" 10 times. This is actually how all loops are implemented in Urn behind the scenes.
Sewbacca 04 Mar 2017
SquidDev, on 04 March 2017 - 07:33 PM, said:
Sewbacca, on 04 March 2017 - 07:25 PM, said:
For a simple for loop, you could have something like this:
local function printTimes(count, string) if count <= 0 then return else print(string) return printTimes(count - 1) end end printTimes(10, "Hello")This will print the string "Hello" 10 times. This is actually how all loops are implemented in Urn behind the scenes.
And which programming languages don't support for loops?
SquidDev 04 Mar 2017
Sewbacca, on 04 March 2017 - 10:40 PM, said:
And which programming languages don't support for loops?