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(); }
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); } } }
public GameRules(FourInARow game) { this.game = game; }
public Player(string brik, string navn, FourInARow game) { this.brik = brik; this.navn = navn; this.game = game; }
public GameRules(FourInARow game) { Game = game; }
public Player(FourInARow game) { this.game = game; }
public Checkers(FourInARow game) { this.game = game; }