Britbot
Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | Private Attributes
Britbot.Magic Class Reference

This class holds the magic numbers we have and may be used for smart in game updates. More...

List of all members.

Static Public Member Functions

static void DumpLog ()
 Dumps all the magic numbers to the game log.

Public Attributes

const double VectorTolerance = 0.001
 Float comparision tolerance.
const int NumberOfTimesTillWeLearn = 5
 Upper bound to the max attempts to catch enemy ships.
const int MaxGroupSize = 4
const double EnemyBaseFactor = 1.1
const double FriendlyBaseFactor = 3.45
const double DensityBonusCoefficient = 0.2
 The coefficient used when adding an island density bonus to the score (makes islands closer in proximity to others better)
const bool UseBasicGlobalizing = false
 Whether or not we use the newer and better globalize score or the simple one.
const double HeadingStabilityCoeff = 0.75
const double minimumTillItIsOkToDropTarget = 5
const int toleranceMargin = 2
const int casualtiesThresholdPercent = 20
 The maximum percent of casualties in a group before it is declared as no formed.

Static Public Attributes

static int MaxIterator = 2500
 Max safe iterator iterations per turn.
static int MaxJoinDistance = 30
 Max distace two groups can be from eachother and still be joind.
static readonly int SimulationLength = 80
 Length of global score's simulation.
static int CloakRange = 2
 The range a cloaked pirate has to be from a taget to be revealed.
static int MaxGroups = int.MaxValue
 Max groups to allow in the config.
static double DecisivenessBonus = 0.0
static bool EuclidianHuristic = false
 This determines if we are using the Euclidian huristic or the Manhaten one.

Properties

static double ScoreConssitencyFactor [get]
static bool DoConfiguration [get]
 Calculates once in how many turns configuration can be recalculated.
static int tryAlternate [get]
static double DangerZone [get]
 The radius of the area around enemy ships which we avoid.
static double EnemyPredictionSensitivity [get]
 The radious of the maximum difference from enemy ships trajectory to an island so we will consider it to be going to the island.
static double ManeuverDistance [get]
 The distance where a group shpuld make a maneuver (get off the island and attack the enemy)
static double MaxCalculableDistance [get]
 the maximum distance of enemy from island that we can say with any certainty that he can possibly try to capture This actually means the maximum time period we try to predict
static double ApproachDistanceSquaredOfStationaryTarget [get]
 the distance that we consider that a stationary target are approaching an island
static double GroupIntersectionDistance [get]
 The distance under wich two groups will be considered intersected.
static double MaxEnemyPredictionDistnace [get]

Private Attributes

internal const int EnemyLocationQueueSize = 4
 Max directions to keep at each EnemyGroup.

Detailed Description

This class holds the magic numbers we have and may be used for smart in game updates.

Definition at line 12 of file Magic.cs.


The documentation for this class was generated from the following file: