コード例 #1
0
        public Logic(FourInARow f)
        {
            this.board = f;
            this.p1    = new Player(this, 'G');
            this.p2    = new Player(this, 'R');

            RunGame();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            /*
             * rules for your development
             * - Do not add anything to the main class!
             * - Follow the '10/100 dogma': No method longer than 10 lines and no class longer than 100 lines (every line counts!)
             * - Use a two dimensional array
             *
             */

            FourInARow game = new FourInARow();
        }
コード例 #3
0
        public Board(FourInARow game)
        {
            this.game = game;

            for (int i = 0; i < 6; i++)
            {
                for (int j = 0; j < 6; j++)
                {
                    SetSingleValue(i, j, FourInARow.emptySpace);
                }
            }
        }
コード例 #4
0
 public GameRules(FourInARow game)
 {
     this.game = game;
 }
コード例 #5
0
 public Player(string brik, string navn, FourInARow game)
 {
     this.brik = brik;
     this.navn = navn;
     this.game = game;
 }
コード例 #6
0
 public GameRules(FourInARow game)
 {
     Game = game;
 }
コード例 #7
0
 public Player(FourInARow game)
 {
     this.game = game;
 }
コード例 #8
0
 public Checkers(FourInARow game)
 {
     this.game = game;
 }