|
-
Jun 12th, 2014, 01:32 PM
#4
Re: Tutorial: Programming in Lua
Project Suggestions
To help build up your Lua skills, I have constructed a list of easy to create programs. The programs that have links to them are projects that I have already completed and would be a good reference guide for you if you get stuck.
Beginner
Name that Number - A program that will take a number that the user inputted and converts that numerical number to the number spelled out in letters. For example, if a user inputs 100 then the program would print out one hundred. For an added bonus, allow for commas and decimals. This will help with basic logic.
Number Guessing Game - A game in which a computer picks a number between x - y. It's the user's job to try and guess the number that the computer picks. The computer will tell the user if he/she guessed to high or to low until the user finally guesses the number that the computer picked. For an added bonus, rate the user on how well he/she guessed. This project will help basic logic and simple loops.
Sentence Generator - A program that creates random sentences based on real grammatical rules. For an added bonus, do not allow for the sentence to contain two of the same articles or two of the same nouns. This project will help with arrays.
Temperature Converter - A program in which the user is able to input a value and the computer converts that value to Fahrenheit or Celsius. For an added bonus, allow the user to chose if they're converting from or to Fahrenheit or Celsius. This project will help with basic mathematics and functions.
Intermediate
Text Based Game - You know you want a little bit of nostalgia and revisit the world of text based games. Create a game where the user can move through scenes, get a general description of the scene, and use different commands to interact with the scene. For an added bonus, give the user the ability to earn treasure based on certain commands in different scenes. This project will help nearly all basic components: user input, conditional logic, arrays, and more!
Bubble Sort Algorithm - Create a bubble sort function. This will return an array of integers that are sorted using the bubble sort algorithm. For an added bonus, give the user the ability to sort from lowest to highest or vice-versa. This project will help with conditional logic, arrays, functions, and loops.
Last edited by dday9; Jun 16th, 2014 at 04:29 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|