Email the Author

You can use this page to email Allan MacGregor about Developing a Text-Based Adventure Game.

Please include an email address so the author can respond to your query

This message will be sent to Allan MacGregor

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

Discover the art of game development with Elixir in this hands-on project-based guide. In Developing a Text-Based Adventure Game in Elixir, you’ll learn how to build an interactive, text-based adventure game from the ground up, using functional programming principles. This booklet takes you step-by-step through designing the game’s structure, managing game states, and implementing core mechanics such as inventory systems, puzzles, and user interactions.

Key concepts covered:

  • Designing flexible game states and transitions using pattern matching.
  • Implementing recursive game loops for scene navigation.
  • Handling user input and output to create a seamless player experience.
  • Managing complex game state without mutable variables.
  • Enhancing gameplay with features like saving/loading, a help system, and randomness for replayability.

Whether you’re a beginner or an experienced Elixir developer, this project will sharpen your skills and inspire you to create more interactive applications using the power of functional programming. Perfect for hobbyists, aspiring game developers, and anyone looking to dive deeper into Elixir.


About the Author

Allan MacGregor’s avatar Allan MacGregor

@allanmacgregor

Allan has an extreme interest in exploring programming and software engineering. He does this by providing mentoring and writing books on programming. He has previously written books for the PHP language, but is now trying his hand at an Elixir book.

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • A-weekend-with-elixir-book2 › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • TranslateAI
    • TranslateWord
    • TranslateEPUB
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss