Sha256: 73d245f92c52fe4fba8cecb6f70a10e5ee91ee6f7c166bc22eb2f19fbd33c097

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'irb'
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'te_reo_maori'

def putanga
  exit
end

extend Tau # Make numbers available
extend WhakamatautauPangarau

puts 'Nau mai haere mai. Welcome to this application for learning and interacting with Maori.'
puts 'Type "putanga" to exit'
puts 'Type "pangarau" for maths test'
puts 'Try and perform +, -, * (times), / (divide) with Maori'
puts 'The numbers are: '
Tau.rarangi.each do |tau, whakamaoritanga|
  puts "#{tau}: #{whakamaoritanga}"
end
puts 'If you type a number and press you will see Maori equivalent. Numbers > 10 must be wrapped in (). Greatest supported is 999'
puts 'Example of bigger numbers. 12: "tekau ma rua". Add 23 + 33: "(rua tekau ma toru) + (toru tekau ma toru)"'
puts 'See integer form by calling "tau", e.g., "((rua tekau ma toru) + (toru tekau ma toru)).tau" '
puts 'If you have any ideas on how this can be improved add issue to https://gitlab.com/samuel-garratt/te_reo_maori/-/issues'

IRB.start(__FILE__)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
te_reo_maori-0.1.6 exe/te_reo_maori
te_reo_maori-0.1.5 exe/te_reo_maori