Showing posts with label focus fire. Show all posts
Showing posts with label focus fire. Show all posts

Saturday, April 19, 2008

Focus Fire Stage 2: Playing with Fire

Now, to define a mathematical strategy for the Focus Fire game... As defined last time, there will only be two types of units in this game, and there will be nine units total per team. Since its an odd number, that means my team will be dominated by one type of unit--let's say Fire for the sake of discussion, because the exact inverse discussion would hold true if it was Ice.

Intuitively, I know all the Fire units will be most optimal attacking the same target. I also know that target should be an Ice unit (if any exist), because Fire has an attack bonus against Ice and Ice has an attack bonus against Fire. In other words, Ice opponents are both the most vulnerable and the most threatening. (This would be a little more complicated using the Paper-Rock-Scissors architecture where vulnerability and threat were divided between different units; perhaps I'll run that scenario for the next game.)

So, with the majority of the team--the Fire units--properly assigned, the only open question is: what do the minority? Do the remaining Ice units assist the Fire units so that the team maximizes its focus, or do they attack their own counterparts (enemy Fire units) so they gain their attack bonus and the team maximizes its gross damage? It's a simple binary decision, but I can't see a definite advantage to one or the other. Which has the best effectiveness? Does that depend upon team makeup at all?

Since it is only a binary decision and since it could possibly vary across teams, I'm going to make strategies for both options. Then, I'll program computer algorithms to play each option against the other across several different team permutations and see what happens. Hopefully, that should answer some questions!

Friday, April 18, 2008

Focus-Fire Stage 1: Whadda We Shoot?

As you may recall in Paper-Rock-Scissors, I made all the units attack all opponents simultameously. There's a big reason for this: the strategy of choosing which unit to attack is a major strategy in and of itself.

The Battle of Trafalgar was a naval battle between the French and the British during the Napoleonic Wars. It's significant because the British won the battle, even though the French had superior numbers. The clever British commander Admiral Lord Nelson decided to divide his fleet into two flanking forces and focus on sinking one ship instead of wounding several. This was contrary to conventional naval warfare. As a result, his ships were able to down French ships at a much quicker rate, which caused the French fleet's firepower to decrease exponentially while the British suffered only linear loses. Because of this unusual outcome, the Battle of Trafalgar is often used as a case-study for mathematical modeling military encounters.

Today, most gamers already know this strategy--if you "focus fire" your attacks on a single unit, you can decimate your opponents at an exponential rate. I wanted to incorporate this into Paper-Rock-Sciscors, but I still had the problem of which unit to attack. Should pure teams focus on attacking the units they are strongest against (agressive) or should they focus on the units that are strongest against them? Should the minorities in hybrid teams attack the same target as the majority, or should they play to their own optimal target? I didn't want to compound the experiments, so I made everyone attack everything. But now, I'm going to analyze those questions independantly.

The Game:
To simplify, let's define the RTS game to only have 2 classes--let's say, Fire and Ice. Each unit has equal effective against itself. However, Fire is twice as effective against Ice, and Ice is twice as effective against Fire. Two teams will face off, each with a combination of Fire and Ice that equals 9 total. The game will be: what is the most effective target solution for each of the nine units? Does this change as a function of team makeup, or is the best strategy universal?