Description
In this course, you will :
- Programming in Lua 5.3.
- Solve problems using Lua.
- Game development using Lua.
Syllabus :
1. Getting Started
- Chunks
- Lexical Conventions
- Comments
- Global Variables
- Types and Values
- Nil
- Booleans
2. Numbers
- Numerals
- Operators - Arithmetic and Relational
- Math Library
3. Strings
- Strings
- Long Strings
- Coercions
- String Library functions
4. Tables
- Tables: Introduction
- Table Indices
- Table Constructors
- Arrays, Lists and Sequences
- Table Traversal
- Table Library
5. Functions
- Functions in Lua: Defining and calling functions
- Multiple results
- Variadic Functions
- table.unpack function
6. Input/Output
- I/O Library
- Simple I/O model
- Complete I/O model
7. Control Structures
- Control Structures in Lua
- If Then Else
- While loop
- Repeat-until loop
- Numerical For
- Generic For
- Break and Return statements
8. Closures
- Functions as First Class Values
- Closures and Lexical Scoping in Lua
9. Pattern Matching
- Pattern matching functions
- Patterns
- Solving N-Queens puzzle in Lua.
10. Date and Time Functions
- Date and Time
- os.time function
- os.date() and os.difftime()
11. Modules and Packages
- Modules in Lua
- Modules as Tables
- require function
- Writing modules in Lua
12. Data Structures in Lua
- Data Structures - Introduction
- Arrays
- Matrices and Multi-dimensional Arrays
- Linked Lists
- Queue and Deque concepts
- Deque implementation in Lu