diff --git a/maximum.lua b/01_maximum.lua similarity index 100% rename from maximum.lua rename to 01_maximum.lua diff --git a/leap_years.lua b/02_leap_years.lua similarity index 100% rename from leap_years.lua rename to 02_leap_years.lua diff --git a/hamming_distance.lua b/03_hamming_distance.lua similarity index 100% rename from hamming_distance.lua rename to 03_hamming_distance.lua diff --git a/resistor_colours.lua b/04_resistor_colours.lua similarity index 100% rename from resistor_colours.lua rename to 04_resistor_colours.lua diff --git a/greatest_common_divisor.lua b/05_greatest_common_divisor.lua similarity index 100% rename from greatest_common_divisor.lua rename to 05_greatest_common_divisor.lua diff --git a/prime_numbers.lua b/06_prime_numbers.lua similarity index 100% rename from prime_numbers.lua rename to 06_prime_numbers.lua diff --git a/palindromes.lua b/07_palindromes.lua similarity index 100% rename from palindromes.lua rename to 07_palindromes.lua diff --git a/anagrams.lua b/08_anagrams.lua similarity index 100% rename from anagrams.lua rename to 08_anagrams.lua diff --git a/queen_threats.lua b/09_queen_threats.lua similarity index 100% rename from queen_threats.lua rename to 09_queen_threats.lua diff --git a/hexadecimal.lua b/10_hexadecimal.lua similarity index 100% rename from hexadecimal.lua rename to 10_hexadecimal.lua diff --git a/fibonacci_numbers.lua b/11_fibonacci_numbers.lua similarity index 100% rename from fibonacci_numbers.lua rename to 11_fibonacci_numbers.lua diff --git a/balanced_brackets.lua b/12_balanced_brackets.lua similarity index 100% rename from balanced_brackets.lua rename to 12_balanced_brackets.lua diff --git a/README.md b/README.md index 96d3dba..37bb04b 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,12 @@ This repo contains some Lua exercises along with automated tests for their solutions. Each file contains a description of the problem and an area for your solution as well as the tests. Feel free to define as many functions and constants as you need in the solution area, but -do not modify the tests. +do not modify the tests. It's recommended that you roughly stick to +the defined order of the exercises, but feel free to deviate if you +wish. To run the tests and check your solution for a given exercise, simply run `lua `. For example, if you were working on the -anagrams exercise, you would run `lua anagrams.lua`. For each +anagrams exercise, you would run `lua 08_anagrams.lua`. For each exercise, the tests should run in well under a tenth of a second; if it takes longer than this you should try to speed up your solution.