Casting SPELs in LFE
Title Page
Copyright Page
1.
Introduction
1.1.
What is LFE?
1.2.
Casting SPELs in LFE?
1.3.
About the Text
1.4.
Contributing
2.
Getting Started
2.1.
Prerequisites
2.2.
Project Space
2.3.
The REPL
2.4.
Syntax & Semantics
3.
Introducing the Game
3.1.
Objects
3.2.
Locations
3.3.
Introducing Functions
4.
Getting Functional
4.1.
Global State
4.2.
A Non-global Alternative
4.3.
The Functional Programming Style
5.
Game World Data
5.1.
Organizing with Records
5.1.1.
Game State
5.1.2.
Objects
5.1.3.
Places & Exits
5.1.4.
Rooms
5.1.5.
Goals
5.1.6.
That's a LOT!
5.2.
Making the World Map
5.3.
Records Functions
6.
Looking Around in our Game World
6.1.
Location, Location, Location
6.2.
Thinking in Patterns
6.3.
Exits
6.4.
Finding Things
6.5.
Putting These Pieces Together
7.
Casting SPELs
7.1.
Walking Around
7.2.
Introducing SPELs
7.3.
Interacting
7.4.
Complex Interactions
7.5.
Creating Special Actions
7.6.
The Winning Move
8.
Adding a Simple Game Server
8.1.
The Problem of State
8.2.
A Glance at Closures
8.3.
Light-weight Processes as Closures
8.4.
Making a Game Server
8.5.
Supporting Commands
9.
Let's Play!
9.1.
Playing to Win
9.2.
Playing to Lose
10.
Production-Quality Game
11.
What's Next?
12.
Addenda
12.1.
Changes from the Original
12.2.
The Case Against the Word "Macro"
Feedback
LFE Documentation
Built with mdBook
LFE PDP
Light
Rust
Coal
Navy
Ayu
Casting SPELs in LFE
Let's Play!
You have now written a complete text adventure game!
Shall we play a game?