Hello!
{Thanks to this post, I received an invite to Habr. Thank you, kind person, invites handler!}
In the process of learning Ruby on Rails, I decided to better understand Ruby itself, for which I wrote a simple RPG RPG game. In fact, I have long wanted to create my own RPG, but it still didn’t fit. And it was on Ruby that everything grabbed instantly and the game turned out in about 10 hours ... On the one hand, I figured out the language, on the other, finally, at least, I took the first step to writing Ultimate-RPG Eva Maid. The impressions are quite strong, so I wanted to share my work with the world (i.e. with Habr).
')
LinkPhysically, the game is a Ruby script that you need to run from the terminal.
ruby ./rubyrpg.rb
No graphics - solid formatted text.

Under the short manual manual
So, the player enters the cave, where he needs to defeat 10 monsters to get to the room with Ruby.
Then monsters start attacking the player. In sequence. Fight with the monster is divided into rounds.
Interface Description:
Kyer - the name of the player; HP is the number of lives; MP is the amount of magic;
The strip of stars - lifebar - i.e. strip of life (i.e., the same HP, only in the form of a strip)
ST - Strength - the power of physical attack.
FI - Fire - the power of fire attack
IC - Ice - the power of ice attack
LI - Lightning - the power of electrical attack
GR - Guard - protection against physical attacks
FR - Fire Resistance - Fire Protection
IR - Ice Resistance - ice protection
LR - Lightning Resistance - protection against electricity
Next comes the turn of the player. Everything is very clear here. You need to choose some action: physical or magical attack, protection from either a physical attack or from a magical attack.
Here you need to make a remark. The number of spells varies depending on how much Ruby you find in the game. For example, when finding the first Ruby, the Shimmahn spell is a powerful physical attack in the list of possible actions.
After the player makes his choice the monster will make a return move and a new round will begin.
It should be added that the power of the monsters depends on the level of the hero. The hero, in turn, pumps only the parameters that he often uses. For example, if you often attack with ice, then your ability to attack with ice will slowly creep up. The same with protection. With each elemental or physical attack, some points are added to the defense against this attack.
Enjoy!
ps. And yes, you can get out of the game only by losing. If you need to exit earlier - we resort to extreme measures (for example, Ctrl + C)