Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Latest commit

 

History

History
13 lines (11 loc) · 610 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 610 Bytes

Portal

Practicing some pure elixir/erlang concepts to keep it fresh, phoenix is great but staying sharp with elixir will only help. This is the portal game from a post by the creator himself.

Ultimately we end up with a supervisor that can handle an arbitrary number of children. These children are each an Agent whose state represents a stack. Standard Push and Pop operations can be performed on the stack. The cool part involves popping from one agent and pushing on to another, thus transfering values.