horaceho / hkgo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert HK Go Record

for ranks

安裝 Install ruby for macOS

brew install ruby

安裝 Install gems

gem install optparse
gem install roo

用法 Usage

ruby ./hkgo.rb
Usage: ruby hogo.rb [options] {file}
        --player                     Output players data
        --record                     Output game records

測試 Test

mkdir -p test
cp ./data/HKGODB_game_record_2018_2023_open.xlsx ./test/

ruby ./hkgo.rb --player data/HKGODB_game_record_2018_2023_open.xlsx > test/HKGODB-2018-2023-open-player.csv
ruby ./hkgo.rb --record data/HKGODB_game_record_2018_2023_open.xlsx > test/HKGODB-2018-2023-open-record.csv

嗚謝 Acknowledgement

  • Thomas Lau 提供數據及建議 for data and guidance.

© 2023 Horace Ho

About


Languages

Language:Ruby 100.0%