Skip to content

Instantly share code, notes, and snippets.

@gistya
Created February 13, 2013 23:43
Show Gist options
  • Select an option

  • Save gistya/4949460 to your computer and use it in GitHub Desktop.

Select an option

Save gistya/4949460 to your computer and use it in GitHub Desktop.
A template to describe bot tests.
//Document format: JSON (kind of)
//Replace # with a numeric value.
//Replace $ inside of quotations with a string value.
//Replace <objectType> with appropriate object populated with values.
//Lastly remove all lines with "//" at the front and boom, JSON.
//Bot Deployment Object Template
//(<botDeploymentObject>):
{
"playerStatsWhenDeployed":<playerStatsObject>,
"def":{"sk":# , "ab":#, "df":#, "lt":#},
"off":{"nm":#, "za":#, "sw":#},
"sup":{"bb":#, "st":#}
}
//Player Stats At Time of Deployment Object Template:
//(<playerStatsObject>):
{
"playerLvlAtTimeOfDeploy":#,
"scopeUpgradesAtTimeOfDeploy":{
"bl":#,
"off": {"de":#, "mx":#, "ic":#},
"def": {"se":#, "dg":#},
"sup": {"am":#, "gs":#},
}
//Player Deployment Object Template:
//(<playerDeploymentObject>):
{
"playerName":"$",
"playerDeployments":[
<botDeploymentObject1>,
<botDeploymentObject2>
//etc.
]
}
//need one bot count object for each deployment made where the deployments were at different levels
//Pre-Attack Existing Bot Population Object Template:
//(<existingBotPopulationObject>):
{
"leg":[<playerDeploymentObject1>,<playerDeploymentObject2>],
"fac":[<playerDeploymentObject1>,<playerDeploymentObject2>],
"swa":[<playerDeploymentObject1>,<playerDeploymentObject2>]
}
//Test Description Object Template:
//(<testDescriptionObject>):
{
"_id":#,
"description":"$",
"zoneName":"$",
"botsInZone":<existingBotPopulationObject>
"attackingBots":<playerDeploymentObject1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment