This is a forum game.
Each game, players construct armies of Objects, and then a simulated battle is fought.
All you need to do to participate is assemble an army.
---
Each Object has 7 parameters: health, base damage, attack1, attack2, defense1, defense2 and strategy
Each Object costs a certain amount to make.
You can make as many objects of as many types as you want as long as the total cost does not exceed 1000.
Here is a script to calculate an Object's cost:
https://dl.dropboxusercontent.com/u/42218552/costscript.py?dl=1In battle, each Object attacks Objects which are not on the same side.
strategy is how the Object acts in battle.
A strategy is told how much damage an Object did, and how much damage an Object received, and how much the target of the Object initially cost.
The strategy will decide whether the Object will keep attacking, switch targets, or hide for one time-step.
To create a single Object, first write the name of the Object.
Then, on the next line, write down the parameters of your Object, seperated by commas.
The strategy should be written down on a separate line in English, and I will translate it to code.
To create your army of Objects, simply list the number of Objects you want of each type.
To submit your army, first add some random letters on the last line of your file.
Then save your file, and paste it into here:
https://sha3calculator.appspot.com/Press Calculate Hash, and paste the result to this forum thread.
After this, do not edit your text file.
When the time comes, I will ask you to paste your text file onto the thread.
--
How is damage calculated?
Each timestep, an object does some damage to its target. This damage is determined by a few things.
The base damage is exactly what it sounds like. It's the damage done, ignoring the multiplier.
The multiplier is determined by two factors.
The first is your attack 1, minus the enemy's defense 1, plus a constant, 0.75.
The second is your attack 2, minus the enemy's defense 2, plus a constant, 0.75.
These factors are capped at 0, so you can't do negative damage.
The multiplier is simply the product of these two factors.
This is important because your attack must be strong enough to get through both defenses.
Otherwise, if one of your factors is zero, your entire multiplier is zero.
But the multiplier has limits too.
The multiplier can't exceed 1, so you can't ever do more than your base damage.
The multiplier also can't be below a certain number. This is so you can bang against a heavily armored target and still do a small amount of damage.
The minimum multiplier is 0.1 divided by the enemy's defense 1 plus defense 2.
Finally, multiply the base damage by the multiplier to get the final damage.
---
How does battle work?
Each object has four possible statuses
1. attacking
2. switching targets
3. hiding
4. dead
If an object is in the attacking status, it will continue attacking it's current target.
If an object is in the switching target status, it will pick another target and attack it in the same turn.
If an object is hiding, whichever objects are targeting that object will switch their targets. A hiding object cannot attack. Also, an object cannot hide two turns in a row.
After the attacking round, a calculation is done to determine which objects have been killed. At this point, objects decide between attacking, switching targets, or hiding, with their strategy.
--
Post if interested.