/// <summary> /// Initializes the pawns and king figures used by all turns using default constants. /// </summary> private void InitializeFigures() { var pawnCreator = new PawnCreator(); for (int i = 0; i < PawnSymbols.Length; i++) { Figure pawn = pawnCreator.CreateFigure(PawnStartingPositions[i], PawnSymbols[i]); this.Pawns.Add(pawn); } var kingCreator = new KingCreator(); this.King = kingCreator.CreateFigure(KingStartingPosition, KingSymbol); }
public void Initalize() { this.creator = new PawnCreator(); }