Sha256: 3dbca65e77cfe114e5050d4c3d34c6dc0e29c1130d30c7b19117652f5f4f5cde
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 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 '' puts 'Try programming with loops with "tena_ano" (to iterate) and "kupu" (speak). E.g., (tahi..iwa).tena_ano { |tau| kupu tau } %w[Maui Bob Sandy].tena_ano { |ingoa| kupu "Haerae Mai #{ingoa}" }' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
te_reo_maori-0.1.8 | exe/te_reo_maori |