Lua
Lua is a scripting language that was greated by a team of computer graphics researchers in Brazil in the early 90s. Since then, the language has grown to be a fully-functional general scripting language, although its primary uses are still in the realm of computer graphics. In particular, Lua has become very popular as a scripting language for computer gaming applications. The language supports many different styles of programming, including functional, procedural, and object-oriented.
Useful Links
- The Lua website has everything from the official (free, open-source) interpreter, to documentation and links to the community wiki.
- There is an online version of the book Programming in Lua, written by one of the original language designers.
- Wikipedia page
- 99 bottles of beer program.
Tools
We will use the official Lua interpreter version 5.3.
Everything you need is already installed on CS department lab machines.
To install on your virtual machine, follow these steps:
-
Run
sudo apt install -y lua5.3
- That's it!
How I will run your code
The programs you submit should be in a single file
called proj.lua
, for either part of the project.
I will test your code by running the following commands
using the software available in the lab environment or using the instructions
above:
lua proj.lua
Phase 1 Requirements
For this language, you need to implement modifications B, C, D, F, G, H, and I. See the Phase 1 page for details on what this means.
Phase 2
See the Phase 2 Page for the list of suggested
problems. Of the ones listed, I recommend the following as being most
well-suited for ruby:
- Matrix Calculator
- Image Creator
- Game Scheduler
- TODO list
- Game with hidden agenda
- Guess the language
- Find the missing digits
- Sports Ticker
- Rock, Paper, Scissors
- Music Maker
- ??? (you choose!)