-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathgame.rb
More file actions
36 lines (30 loc) · 791 Bytes
/
game.rb
File metadata and controls
36 lines (30 loc) · 791 Bytes
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
#!/usr/bin/env ruby
# encoding: UTF-8
require 'money'
require 'pry'
require 'rainbow'
require 'thor'
require_relative './helper/helper.rb'
Dir[__dir__ + '/core/*.rb'].each { |file| require file }
Dir[__dir__ + '/jobs/*.rb'].each { |file| require file }
Dir[__dir__ + '/events/*.rb'].each { |file| require file }
Dir[__dir__ + '/companies/*.rb'].each { |file| require file }
Dir[__dir__ + '/projects/*.rb'].each { |file| require file }
class GameCLI < Thor
desc 'start [COMMAND]', 'Start Game'
def start
game = StartupGame.new
game.opening
game.hire_coders
game.run
end
desc 'staff [COMMAND]', 'Thanks to all contributors'
def staff
HireSystem.staff
end
desc 'cheat [COMMAND]', 'Guess'
def cheat
HireSystem.estimate
end
end
GameCLI.start(ARGV)