public AI(Board board) { _board = board; _bBoard = new ByteBoard(); patternMap = new Dictionary<int, int>(); patternMap.Add(1, AL1); patternMap.Add(2, AL2); patternMap.Add(3, AL3); patternMap.Add(4, AL4); patternMap.Add(5, DEFAULT); }
public Referee(bool isRuleBreakable, bool isRuleDoubleThree, bool AI) { _board = new Board(this, isRuleBreakable, isRuleDoubleThree); _player1 = new HumanPlayer(this, 1); if (AI) _player2 = new AIPlayer(this, 2); else _player2 = new HumanPlayer(this, 2); _winner = 0; _playerPlaying = _player1; invalidPos = new Position(-1, -1); _lastPos = new Position(-1, -1); _boardChanged = false; }
private void BReset_Click(object sender, EventArgs e) { b = new Board(); Refresh(); }