예제 #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;
 }