37 lines
669 B
Crystal
37 lines
669 B
Crystal
|
|
require "option_parser"
|
|
|
|
require "./game"
|
|
|
|
class Bordle
|
|
class BordleCli
|
|
|
|
property options : String?
|
|
|
|
def initialize()
|
|
@options = nil
|
|
end
|
|
|
|
def self.parse_options(args)
|
|
return nil
|
|
end
|
|
|
|
# FIXME: add --length LEN option (length of words)
|
|
# FIXME: add --lang LANG option (choose dictionnary)
|
|
# FIXME: add --tries TRIES option (how many tries are allowed)
|
|
# FIXME: add --with-letters (show used/unused letters)
|
|
def self.run(args)
|
|
app = BordleCli.new
|
|
options = BordleCli.parse_options(args)
|
|
app.options = options
|
|
|
|
game = Game.new
|
|
game.run()
|
|
|
|
end
|
|
end
|
|
end
|
|
|
|
Bordle::BordleCli.run(ARGV)
|
|
|