Introduction to Lua

How this course works, what the workbench can do, and the chapter list.

This is a Lua course for the Swiftener Lua Playground (Fengari). Always print. Tables are 1-indexed. Python belongs in Introduction to Python.

Goal

Finish every chapter by running the copy-paste blocks. The last chapter is a kiosk inventory you can reuse.

How to take the course

  1. Keep this tutorial tab and the Lua Playground side by side.
  2. Wait until Lua is ready.
  3. Copy an exercise, paste it as the whole editor, then press Ctrl+Enter (or Cmd+Enter).
  4. Always print a result. The first list item is index 1, not 0.

What this playground can and cannot do

  • Can: Lua, print, tables, local drafts, a kiosk text file.
  • Cannot: installing rocks, or a system shell.

Sample files

  • kiosk.txt — Nairobi kiosk lines

Chapter list