nickstark/project5115 — Issue #2: (Preferred) Format for Simulator Input
Author: ironraven24
Created: 2011-11-27 04:47:10+00:00
State: open

Hey guys,

I was working on the simulator and reading up on JSON and was wondering if it would be possible to format the input in the following manner:

{
"champion": {
"champ_type": 0,
"level": 1,
"Q_spell_level": 1,
"W_spell_level": 1,
"E_spell_level": 1,
"R_spell_level": 1,
"ability_power": 1080,
"armor": 1080,
"armor_pen"; 12,
"attack_damage": 200,
"attack_speed": 1080,
"cooldown_reduction": 1,
"crit_chance": 1,
"crit_damage": 1,
"dodge_chance": 12,
"health_regen": 12,
"lifesteal": 12,
"magic_resist": 12,
"mana_regen": 12,
"max_health": 12,
"max_mana": 12,
"spell_pen": 12,
}

"enemy": {
"champ_type": 0,
"level": 1,
"Q_spell_level": 1,
"W_spell_level": 1,
"E_spell_level": 1,
"R_spell_level": 1,
"ability_power": 1080,
"armor": 1080,
"armor_pen"; 12,
"attack_damage": 200,
"attack_speed": 1080,
"cooldown_reduction": 1,
"crit_chance": 1,
"crit_damage": 1,
"dodge_chance": 12,
"health_regen": 12,
"lifesteal": 12,
"magic_resist": 12,
"mana_regen": 12,
"max_health": 12,
"max_mana": 12,
"spell_pen": 12,
}

"simulation": {
"type": 2,
"duration": 2,
}
}

Nick, you should be familiar with this syntax. If you just want to use integers for everything, you can just take the floor of every number, that should be good enough. As for champions:

ANNIE 0
ASHE 1
CHOGATH 2
JAX 3
KOGMAW 4
TARIC 5

(These are simply in alphabetical order. How would that work? Thoughts?