コード例 #1
0
ファイル: BubbleGroup.cs プロジェクト: gkinsman/BubbleBurst
 public bool IsValidFor(ImmutableBubbleBurstGrid grid)
 {
     return(Locations.All(location => grid[location.X, location.Y] == Colour));
 }
コード例 #2
0
 public GameMove(ImmutableBubbleBurstGrid grid)
 {
     Score     = 0;
     GridState = grid;
     Moves     = new List <PointAndColour>();
 }
コード例 #3
0
 public BubbleGroupFinder(ImmutableBubbleBurstGrid grid, IEnumerable <BubbleGroup> parentsGroups)
 {
     _grid  = grid;
     _stats = new Dictionary <Bubble, int>();
     //_parentGroups = parentsGroups ?? Enumerable.Empty<BubbleGroup>();
 }
コード例 #4
0
 internal GameMove(ImmutableBubbleBurstGrid gridState, IList <PointAndColour> moves, int score)
 {
     Score     = score;
     Moves     = moves;
     GridState = gridState;
 }