Listing the Heroes
Make the game display a list of heroes for the player.
We'll cover the following
Displaying
The next step is to make the game display a list of heroes to the player. The actions of displaying an interface and displaying the heroes list are two different contexts. We’ll learn how to separate them. First, let’s create the heroes list by creating the heroes.ex
file in the lib/dungeon_crawl
folder. Our directory structure should look like this:
Get hands-on with 1400+ tech skills courses.