示例#1
0
 public BattleshipGame(int seed, Difficulty diff)
 {
     Player        = new PrimaryBoard();
     AI            = new PrimaryBoard();
     PlayerTracker = new TrackerBoard();
     AITracker     = new TrackerBoard();
     Difficulty    = diff;
     Seed          = seed;
 }
示例#2
0
 public void SetSource(PrimaryBoard board)
 {
     Source              = board;
     Source.TileChanged += (o, e) => Invalidate();
     Invalidate();
 }