コード例 #1
0
ファイル: RulesChecker.cs プロジェクト: Kajti/BoardGames
        //Wygrana jak przeciwnik nie ma pionków

        //Zrobić refaktor

        public RulesChecker(IBoard board)
        {
            this.board    = board;
            PawnRules     = new PawnRules(board);
            QueenRules    = new QueenRules(board);
            standardRules = new StandardCheckersMoveRules(board);
        }
コード例 #2
0
ファイル: PawnRules.cs プロジェクト: Kajti/BoardGames
 public PawnRules(IBoard board)
 {
     this.board             = board;
     this.standardMoveRules = new StandardCheckersMoveRules(board);
 }