Skip to content

Instantly share code, notes, and snippets.

View varjmes's full-sized avatar
🏳️‍🌈

James varjmes

🏳️‍🌈
  • London
  • 03:13 (UTC +01:00)
View GitHub Profile
@varjmes
varjmes / theendingisalwaysdeath.rb
Last active December 18, 2015 00:09
Tiny text-based adventure game written in Ruby.
def prompt
print("> ")
end
puts("You enter a dark room with two doors. Do you go through door #1 or #2?")
prompt; door = gets.chomp
if door == "1"
puts("You walk towards door #1")