Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

write-yourself-a-roguelike

> 编程语言
Open source

Write Yourself A Roguelike: Ruby Edition

158 stars0 likes0 views
WebsiteGitHub

About

Write Yourself A Roguelike: Ruby Edition

Write Yourself a Roguelike

You are about to embark on a journey. This journey will be plagued with orcs, gnomes, algorithms, data structures, and kittens. You, valiant developer, will be writing a Roguelike.

Outline

  • Intro

    • What is a Roguelike?
    • What is NetHack?
    • Tooling
    • Why Write This Book?
  • Creating a Character

    • The Title Screen
    • Messages
    • Roles
    • Races
    • Genders
    • Alignments
    • Generating Abilities
  • Creating the Dungeon

    • Generating random rooms
    • Generating Doors and Corridors
    • Moving around
    • Creating Stairwells
    • Vision and Lighting
    • Color
  • Inventory

    • Items
    • Burden
    • Money and Shops
    • Food and Hunger
    • Unidentified Items
  • Combat

    • Random Monsters
    • Combat
    • Magic
  • Wrapping up

    • Saving and Loading
    • Increasing Difficulty
    • What to do next
  • Possible Future Chapters

    • Searching, hidden doors and corridors
    • Questlines
    • Alternate Dungeon types
    • Blessings and Curses
    • Pets
    • Zoos

Building

There is a build tool included with this project that will allow you to compile the contents of the book directory into an EPUB-formatted e-book. First, to ensure that you’ve got the necessary dependencies for the compilation process, change to the project directory and run:

$ bundle install

We then need to have Pandoc installed.

Now, anytime you’d like to compile the book you can simply run the compile script:

$ exe/compile

Doing so will write a file entitled write-yourself-a-roguelike.epub to the release directory, overwriting any existing file with the same name.

Issues· 3 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言