public HauntedHouseGame() { MapEntity mapEntityGhost = new MapEntity { Description = "Ghost", Icon = null, DisplayText = "G", ScoringWeight = -100, DistributionWeight = 1, }; MapEntity mapEntityZombie = new MapEntity { Description = "Zombie", Icon = null, DisplayText = "Z", ScoringWeight = -10, DistributionWeight = 3, }; MapEntity mapEntityWeapon = new MapEntity { Description = "Weapon", Icon = null, DisplayText = "X", ScoringWeight = 0, DistributionWeight = 2 }; MapEntity mapEntityExit = new MapEntity { Description = "Exit", Icon = null, DisplayText = "Ex", ScoringWeight = 0, Multiplicity = MapEntityMultiplicity.Single }; MapEntity mapEntityWall = new MapEntity { Description = "Wall", Icon = null, DisplayText = "W", ScoringWeight = 0, DistributionWeight = 1, IsMoveAllowedOnThis = false }; Columns = 5; GameTitle = "Haunted House"; Rows = 5; MaxScore = 100; MoveScore = -5; MapEntities = new List <IMapEntity> { mapEntityGhost, mapEntityWall, mapEntityExit, mapEntityWeapon, mapEntityZombie }; MoveEvaluator = new HauntedHouseGameMoveEvaluation(); }
public void Reset() { MoveEvaluator = new HauntedHouseGameMoveEvaluation(); }