Skip to content

Instantly share code, notes, and snippets.

View naltun's full-sized avatar
🕊️
Free/Libre Software to the rescue

Noah naltun

🕊️
Free/Libre Software to the rescue
View GitHub Profile
@naltun
naltun / turn_based.rb
Last active December 12, 2017 14:12 — forked from CodePint/turn_based.rb
##Turn based ruby game
=begin
GOAL
Write a simple game that allows the user and the computer to take turns selecting moves to use against each other.
Both the computer and the player should start out at the same amount of health (such as 100),
and should be able to choose between the three moves:
The first move should do moderate damage and has a small range (such as 18-25).