Module: Engine

Defined in:
lib/engine.rb,
lib/engine/cli.rb,
lib/engine/card.rb,
lib/engine/deck.rb,
lib/engine/rating.rb,
lib/engine/version.rb,
lib/engine/fixtures.rb,
lib/engine/card_state.rb,
lib/engine/strategies.rb

Overview

require_relative ‘engine/cli’

Defined Under Namespace

Classes: AnkiStrategy, BaseStrategy, CLI, Card, CardState, Deck, Rating, SuperMemoStrategy

Constant Summary collapse

VERSION =
'0.0.1'
FIXTURES =
[
  [ '入選', "(入选) [ru4 xuan3] /to be chosen/to be elected as/" ],
  [ '報名', "(报名) [bao4 ming2] /to sign up/to enter one's name/to apply/to register/to enroll/to enlist/" ],
  [ '訊息', "(讯息) [xun4 xi1] /information/news/message/text message or SMS/" ],
  [ '詢問', "(询问) [xun2 wen4] /to inquire/" ],
  [ '導致', "(导致) [dao3 zhi4] /to lead to/to create/to cause/to bring about/" ],
  [ '', "[qin2] /guqin or zither, cf 古琴[gu3 qin2]/musical instrument in general/" ],
  [ '提供', "[ti2 gong1] /to offer/to supply/to provide/to furnish/" ],
  [ '更新', "[geng1 xin1] /to replace the old with new/to renew/to renovate/to upgrade/to update/to regenerate/" ],
  [ '出力', "[chu1 li4] /to exert oneself/" ],
  [ '拌蒜', "[ban4 suan4] /to stagger (walk unsteadily)/" ],
].map{|args| Card.new(args, CardState::EMPTY)}