#!/usr/bin/env ruby
require File.expand_path('../../config/environment', __FILE__)
Dir.chdir Rails.root
FreeBattle.destroy_all
tp FreeBattle.create!(kifu_body: "http://live.shogi.or.jp/ryuou/kifu/32/ryuou201910230101.html")
# >> |--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
# >> |                 id | 9                                                                                                                                                                                                                                                                                                                                                                          |
# >> |                key | 830111a1bd1f6e239b5cbb7958b14417                                                                                                                                                                                                                                                                                                                                           |
# >> |              title |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |          kifu_body | # --- Kifu for Windows (Pro) V6.65.44 棋譜ファイル ---\n対局ID：9768\n記録ID：5da57a2db126bf00041bcb64\n開始日時：2019/10/23 09:00\n終了日時：2019/10/24 19:08\n表題：竜王戦\n棋戦：第３２期竜王戦七番勝負　第２局\n戦型：相掛かり\n持ち時間：各８時間\n消費時間：126▲474△476\n場所：京都・仁和寺\n備考：昼休前48手目24分２日目昼休前82手目11分封じ手時刻:18:00＜66手... |
# >> |          sfen_body | position startpos moves 2g2f 8c8d 2f2e 8d8e 6i7h 4a3b 3i3h 7a7b 5i5h 5a5b 7g7f 8e8f 8g8f 8b8f 2e2d 2c2d 2h2d P*2c 2d2f 3c3d P*8g 8f8d 3g3f 7c7d 2i3g 8a7c 4i4h 6a6b 4g4f 6c6d 3h4g 7b6c 2f2i 8d8a 9g9f 9c9d 1g1f 1c1d 5g5f 5c5d 8h2b+ 3a2b 7i6h 2c2d B*8h B*4b 4...                                                                                                        |
# >> |           turn_max | 126                                                                                                                                                                                                                                                                                                                                                                        |
# >> |          meta_info | {:black=>{:defense=>[], :attack=>[], :technique=>[:垂れ歩], :note=>[:居飛車, :大駒コンプリート, :相居飛車]}, :white=>{:defense=>[], :attack=>[], :technique=>[], :note=>[:居飛車, :大駒全ブッチ, :相居飛車, :屍の舞]}}                                                                                                                                                     |
# >> |         battled_at | 2019-10-23 09:00:00 +0900                                                                                                                                                                                                                                                                                                                                                  |
# >> |            use_key | basic                                                                                                                                                                                                                                                                                                                                                                      |
# >> |        accessed_at | 2021-03-04 10:40:32 +0900                                                                                                                                                                                                                                                                                                                                                  |
# >> |            user_id |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |         preset_key | 平手                                                                                                                                                                                                                                                                                                                                                                       |
# >> |        description |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |          sfen_hash | 07c038d2a8d4bd300193534cd0fc86a3                                                                                                                                                                                                                                                                                                                                           |
# >> |         start_turn |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |      critical_turn | 12                                                                                                                                                                                                                                                                                                                                                                         |
# >> |      outbreak_turn | 58                                                                                                                                                                                                                                                                                                                                                                         |
# >> |         image_turn |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |         created_at | 2021-03-04 10:40:32 +0900                                                                                                                                                                                                                                                                                                                                                  |
# >> |         updated_at | 2021-03-04 10:40:32 +0900                                                                                                                                                                                                                                                                                                                                                  |
# >> |   defense_tag_list |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |    attack_tag_list |                                                                                                                                                                                                                                                                                                                                                                            |
# >> | technique_tag_list |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |      note_tag_list |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |     other_tag_list |                                                                                                                                                                                                                                                                                                                                                                            |
# >> |--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
