フロントエンドプレイアブル
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
2026-02-15 14:57:17 +09:00
commit f25fd6f802
198 changed files with 10342 additions and 0 deletions

21
dump_api_res.rb Normal file
View File

@@ -0,0 +1,21 @@
client = GameApiClient.new
turn1 = Turn.find_by(number: 1)
if turn1
puts "Calling api_calculate_process..."
res = client.api_calculate_process(turn1.game_state, turn1.orders || {})
if res
File.write('api_process_response.json', JSON.pretty_generate(res))
puts "Saved full response to api_process_response.json"
# また、現在のTurn 2のgame_stateの中身も確認
t2 = Turn.find_by(number: 2)
if t2
File.write('db_turn2_game_state.json', JSON.pretty_generate(t2.game_state))
puts "Saved Turn 2 game_state from DB to db_turn2_game_state.json"
end
else
puts "Process failed."
end
end