Material for building the workshop tutorial.
We need to explain some Elixir basics like the data structures we use. We should have a look at the Elixir Girls Elixir Beginners Guide for this.
A first collection things we need to explain (very incomplete):
- iex
- data types
- atoms
- data structures
- tuple
- list
- map
- operators
- pipe
- Enum module
- event loop
- ...
We want to learn more about the Elixir programming language by building a fun game together: snake - a cult game from mobile phones in the 1990s 🕹
The game works as follows:
The player controls a moving snake which has to "eat" as many items as possible by running into them with its head. Each item makes the snake grow longer and the game is lost when the head runs into the tail.
We will implement the game using Scenic, a library for building native macOS or Linux applications with graphical user interfaces in Elixir.