public ChessBoard(IChessBoardUIControl chessBoardUI, Game game) { this.ChessBoardUI = chessBoardUI; Board = new IChessPiece[8, 8]; this.game = game; ChessBoardUI.ChessPieceImageClicked += SquareClicked; }
public Game(IChessBoardUIControl chessBoardUI, string id, IPlayer GameCreator, string token, IServerConnection service) { this.service = service; GameId = id; this.ChessBoard = new ChessBoard(chessBoardUI, this); AddPlayer(GameCreator); JoinToken = token; GameInstancePlayer = GameCreator; eventAggregator.Subscribe(this); }