63
Lanchester’s Laws in Space

Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Embed Size (px)

Citation preview

Page 1: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Lanchester’s Laws in Space

Page 2: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Overview• Introduce Lanchester’s Laws• Show a game demo• Go through the math• How to apply to game design

Page 3: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Lanchester’s Laws• Devised by Frederick Lanchester in WW I• Describe the relative strengths of two fighting

armies in a war of attrition.

What’s better: more troops or bigger guns?

Page 4: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

“…a man with a firepower of 2X is not worth twice the value of a man with firepower X, but rather as much, after taking into account one hit on either kills just as dead.”

Page 5: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

See AlsoThe Designer's Notebook: Kicking Butt by the Numbers: Lanchester's Laws– Ernest Adams

Page 6: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Game Demo

Page 7: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Lightspeed Brigade• Lots of different tradeoffs between firepower,

hitpoints and # of units.

• Need to balance units, but also create R/P/S relationship.

• Leave room for future content expansion.

Page 8: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Lanchester’s LawsModel relationship between numerical advantage (N) and firepower advantage (F)

Page 9: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Example: Fighters vs. NinjasSuppose:• Everyone has 10 hitpoints• Ninjas do 1 hitpoint per round.• Fighters do 10 hitpoints per round.

How many Ninjas can a Fighter defeat?

Page 10: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Case 1: Thunderdome

Page 11: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Case 2: Gun Fight

Page 12: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Case 1: ThunderdomeNinja HP

1 2 3 4 5 6 7 8 9 10 Fighter HP

Start 10 10 10 10 10 10 10 10 10 10 10

Round 1 10 10 10 10 10 10 10 10 10 9

Round 2 10 10 10 10 10 10 10 10 8

Round 3 10 10 10 10 10 10 10 7

Round 4 10 10 10 10 10 10 6

Round 5 10 10 10 10 10 5

Round 6 10 10 10 10 4

Round 7 10 10 10 3

Round 8 10 10 2

Round 9 10 1

Round 10 0 0

Page 13: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Case 1: ThunderdomeEquilibrium:

(Lanchester’s Linear Law)

Page 14: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Page 15: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Page 16: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Page 17: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Army Size

Page 18: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Army Size

Page 19: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Army Size

Page 20: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Army Size

Casualties Per Round

Page 21: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Army Size

Casualties Per Round

Page 22: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Army Size

Casualties Per Round

% Army Lost per Round

Page 23: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Damage (kills/round)

Army Size

Casualties Per Round

% Army Lost per Round

Page 24: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

% Army Lost per Round

The Math:

=

Page 25: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:

Page 26: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:

Page 27: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:

Page 28: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

• It could be multiple Thunderdomes• 1-on-1 fighting is the important property

Page 29: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Case 2: Gun Fight • Combatants gang up for maximum attrition.• No Overkill• No “Underkill”

Page 30: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

4 Ninjas vs. 1 FighterNinja HP

1 2 3 4 Fighter HPStart 10 10 10 10 10

Round 1 10 10 10 6Round 2 10 10 3Round 3 10 1Round 4 0 0

Page 31: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

32 Ninjas vs. 10 FighterNinjas Fighters

Start 32 10Round 1 22 6.8Round 2 15 4.6Round 3 10 3.1Round 4 6 2.1Round 5 3 1.5Round 6 1 1.2Round 7 0 1.1

Page 32: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

One More NinjaNinjas Fighters

Start 32 10Round 1 22 6.8Round 2 15 4.6Round 3 10 3.1Round 4 6 2.1Round 5 3 1.5Round 6 1 1.2Round 7 0 1.1

Ninjas FightersStart 33 10Round 1 23 6.7Round 2 16 4.4Round 3 11 2.8Round 4 8 1.7Round 5 6 0.9Round 6 5 0.3Round 7 4 0

Page 33: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Case 2: Gun FightEquilibrium:

(Lanchester’s Square Law)

Page 34: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Weapon Damage (kills/sec)

Army Size

Page 35: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Weapon Damage (kills/sec)

Army Size

Total Kills Per Second

Page 36: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:Ninjas Fighters

Weapon Damage (kills/sec)

Army Size

Total Kills Per Second

% Army Lost per Second

Page 37: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:

% Army Lost per Second =

Page 38: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:

Page 39: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:

Page 40: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:

Page 41: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

The Math:

Page 42: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Lanchester’s Laws

• Thunderdome

• Gun Fight

Page 43: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Point Value of a Unit• How many Ninjas is a unit worth?• Solve for N.

Page 44: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Point Value of a Unit

• Thunderdome

• Gun Fight

Page 45: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Variable Hitpoints

Page 46: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Variable Hitpoints

• Thunderdome

• Gun Fight – 2 guys can beat 2x firepower OR 2x health– But not both.

• Works for heterogeneous armies.

Page 47: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Two extremes

• Thunderdome

• Gun Fight

• In General

Page 48: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

k represents inefficiencySources of inefficiency:• Limited range and/or movement• Limited space• Overkill• Underkill

Wikipedia: Modern calculations use k =⅔

Page 49: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Possibly two different k values

• Point Value

Page 50: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Factors that Don’t Affect Efficiency• Multipliers on F– fire rate– to-hit chance

• Multipliers on H– dodge chance– damage reduction

Page 51: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Factors that Don’t Fit the Model• Healing/Regeneration• Per-hit damage thresholds• Etc.

Page 52: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Back to Lightspeed Brigade• Different ship sizes and ship costs• Rock/Paper/Scissors relationship

Page 53: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Ship Values

Ship Cost Fire Rate DamageHit

Points

Fighter 0.2 1 1 5

Cruiser 2 3 5 35

Dreadnought 3 0.45 35 75

Page 54: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Point Values (k = .5)

Ship Cost Fire Rate DamageHit

PointsPoint Value PV/Cost

Fighter 0.2 1 1 5 2.2 11.2

Cruiser 2 3 5 35 22.9 11.5

Dreadnought 3 0.45 35 75 34.4 11.5

Page 55: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Point Values (k = 2/3)

Ship Cost Fire Rate DamageHit

PointsPoint Value PV/Cost

Fighter 0.2 1 1 5 2.9 14.6

Cruiser 2 3 5 35 65.1 32.5

Dreadnought 3 0.45 35 75 111.7 37.2

Page 56: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Creating Rock/Paper/Scissors• Create match-ups that are inefficient for each

side.

Page 57: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Overkill

Ship Cost Fire Rate DamageHit

Points

Fighter 0.2 1 1 5

Cruiser 2 3 5 35

Dreadnought 3 0.45 35 75

Page 58: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Range

Ship Cost Fire Rate DamageHit

Points Range

Fighter 0.2 1 1 5 50

Cruiser 2 3 5 35 65

Dreadnought 3 0.45 35 75 100

Page 59: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

AI changes were needed• Dreadnoughts: Don’t bother shooting at

fighters. • Cruisers: Change targets quickly. Only steer at

one target.

Page 60: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Explicit R/P/S Mechanics Avoided• One less rule to learn • Leave room for future expansion

Page 61: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

If it’s R/P/S, why do Point Values matter?

• You could end up with a “lopsided” R/P/S: – Rock beats Scissors handily– But Paper beats Rock just barely.

Page 62: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

To Sum Up• “Thunderdome” and “Gun Fight” have perfect

solutions.• Your game lies between them. • Lanchester’s laws can give you a head start on

point values. • Still no substitute for playtest. • Spreadsheets are awesome.

Page 63: Lanchester’s Laws in Space. Overview Introduce Lanchester’s Laws Show a game demo Go through the math How to apply to game design

Questions?