public Logic(FourInARow f)
        {
            this.board = f;
            this.p1    = new Player(this, 'G');
            this.p2    = new Player(this, 'R');

            RunGame();
        }
        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;
 }