Lua missions (AKA Lua Koans) - Learn Lua while programming

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Lua missions (AKA Lua Koans) - Learn Lua while programmi

Post by kikito »

This week I'm a bit busy with another project. But next week I'll add more exercises.

fizzbuzz is a bit boring for my taste. I prefer less "algorithm oriented" problems. For example, the ruby koans have a great exercise called "triangles" - given three side lengths, return "equilateral", "isosceles" or "scalene". I dig that kind of thing, and graph theory stuff.

But anyway, thanks for the suggestion!
When I write def I mean function.
User avatar
TechnoCat
Inner party member
Posts: 1612
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Lua missions (AKA Lua Koans) - Learn Lua while programmi

Post by TechnoCat »

Code: Select all

dcfritz@mdw-14:~/downloads/kikito-lua_missions-2f1dc69/missions$ lua missions.lua .............................................................................................................................................................................................................

*** Mission status ***

asserts...........................................[Complete]
variables.........................................[Complete]
numbers...........................................[Complete]
strings...........................................[Complete]
patterns..........................................[Complete]
control...........................................[Complete]
truthiness........................................[Complete]
functions.........................................[Complete]
errors............................................[Complete]
load..............................................[Complete]
tables............................................[Complete]
tables_and_functions..............................[Complete]
meta..............................................[Complete]
indices...........................................[Complete]
exercise..........................................[Complete]
weak_tables.......................................[Complete]
environments......................................[Complete]


Congratulations! You have finished all the missions!
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Lua missions (AKA Lua Koans) - Learn Lua while programmi

Post by Robin »

I really miss the Zen stuff in here. :(
Help us help you: attach a .love.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Lua missions (AKA Lua Koans) - Learn Lua while programmi

Post by vrld »

Robin wrote:I really miss the Zen stuff in here. :(
Two monks were walking across a bridge. The junior monk said to his teacher: "What is the Buddha nature?" The other monk picked him up and threw him in the water.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Lua missions (AKA Lua Koans) - Learn Lua while programmi

Post by kikito »

@technocat: congratulations! you completed all the missions!

@robin: I don't know enough zen to make proper fun of it.

@vrld: you win
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests