turn = Turn.last
puts "Turn ID: #{turn.id}"
puts "Possible Orders Keys: #{turn.possible_orders&.keys}"
if turn.possible_orders && turn.possible_orders["possible_orders"]
  puts "Possible Orders Content Keys: #{turn.possible_orders["possible_orders"].keys}"
  puts "First Order Sample: #{turn.possible_orders["possible_orders"].values.first}"
else
  puts "Possible Orders Content: #{turn.possible_orders}"
end
puts "SVG Orders Keys: #{turn.svg_orders&.keys}"
puts "SVG Orders NONE Size: #{turn.svg_orders['NONE']&.size}" if turn.svg_orders
puts "SVG Orders ALL Size: #{turn.svg_orders['ALL']&.size}" if turn.svg_orders

puts "--- API Client Test ---"
client = GameApiClient.new
orders = { "AUSTRIA" => { "BUD" => "A BUD - TRI" } }
puts "Testing api_render with orders: #{orders}"
svg = client.api_render(turn.game_state, orders: orders)
puts "SVG Result Size: #{svg&.size}"
puts "SVG Result (First 100 chars): #{svg&.slice(0, 100)}"
