public static Piece InstantiateNew(ChessPieceType pieceType, PieceTeam team) { Piece newPiece = InstantiateNew(pieceType); newPiece.Team = team; return(newPiece); }
public Player(ChessGame game, PieceTeam team) { Game = game; Team = team; game.OnTurnChange += OnTurnChange; }
public TeamT GetTeam(PieceTeam team) { switch (team) { case PieceTeam.White: return(whiteTeam); case PieceTeam.Black: return(blackTeam); case PieceTeam.None: default: return(null); } }
public void Initialize(ChessGame game, PieceTeam team) { this.Team = team; switch (type) { case Type.Player: break; case Type.MinMax: playerModel = new Player.AI.ChessMinMaxAI(game, team); playerModel.OnMovementDecided += OnDecideMovement; break; default: throw new NotImplementedException(); } }
public ChessMinMaxAI(ChessGame game, PieceTeam team, int maxTurnsDepth = 3, float maxCalculationTime = 5f) : base(game, team) { MaxTurnsDepth = maxTurnsDepth; MaxCalculationTime = maxCalculationTime; }
public ChessAI(ChessGame game, PieceTeam team) : base(game, team) { }
public MirroredPiecesEntry(PieceTeam team, BoardVector position) : base(team) { this.position = position; }
public Pawn(PieceTeam team) { PieceTeam = team; }
public MirroredPiecesEntry(PieceTeam team, int horizontal, int vertical) : this(team, new BoardVector(horizontal, vertical)) { }
public RowPiecesEntry(PieceTeam team, int height) : base(team) { this.height = height; }
public SinglePieceEntry(PieceTeam team, BoardVector startPosition) : base(team) { this.position = startPosition; }
public SinglePieceEntry(PieceTeam team, int horizontal, int vertical) : this(team, new BoardVector(horizontal, vertical)) { }
public PieceEntry(PieceTeam team) { this.team = team; }