-
Notifications
You must be signed in to change notification settings - Fork 9
/
lots.rb
43 lines (39 loc) · 882 Bytes
/
lots.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env ruby
#
# Legend of the Sourcerer
# Written by Robert W. Oliver II <robert@cidergrove.com>
# Copyright (C) 2018 Sourcerer, All Rights Reserved.
# Licensed under GPLv3.
LOTS_VERSION = "1.00"
begin
require 'colorize'
rescue LoadError
puts
puts "Legend of the Sourcerer requires the 'colorize' gem to run."
puts
puts "Installation Instructions"
puts "-------------------------"
puts
puts "Debian/Ubuntu Linux:"
puts " sudo apt install ruby-colorize"
puts
puts "Other Linux Distros:"
puts " gem install colorize"
puts
puts "Windows:"
puts " gem install colorize"
puts
puts "macOS:"
puts " gem install colorize"
puts
puts
exit
end
# Require libraries
load "lib/ui.rb"
load "lib/world.rb"
load "lib/character.rb"
load "lib/story.rb"
load "lib/enemy.rb"
# Start
load "lib/main.rb"