Module: Fet::Cli::Play::Listening

Defined in:
lib/fet/cli/play/listening.rb

Overview

CLI implementation for the “play listening” command

Class Method Summary collapse

Class Method Details

.run(_global_options, options, _args) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/fet/cli/play/listening.rb', line 8

def self.run(_global_options, options, _args)
  Fet::Ui::Game.new(
    tempo: options[:tempo],
    degrees: options[:degrees],
    key_type: options[:"key-type"],
    next_on_correct: options[:"next-on-correct"],
    limit_degrees: options[:"limit-degrees"],
  ).start
end