フロントエンドプレイアブル
This commit is contained in:
16
verify_api_data.rb
Normal file
16
verify_api_data.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
client = GameApiClient.new
|
||||
turn = Turn.last
|
||||
|
||||
puts "--- Normalization Test ---"
|
||||
initial_state = client.api_game_initial_state
|
||||
inner_state = initial_state['game_state']
|
||||
puts "Input Inner State Class: #{inner_state.class}"
|
||||
res = client.api_calculate_process(inner_state, {})
|
||||
puts "Result Class: #{res.class}"
|
||||
if res.is_a?(Hash)
|
||||
puts "Result Keys: #{res.keys}"
|
||||
next_inner_state = res['game_state']
|
||||
puts "Next Inner State Class: #{next_inner_state.class}"
|
||||
puts "Next Inner State Summary: #{next_inner_state['phase']} / #{next_inner_state['status']}" if next_inner_state.is_a?(Hash)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user