Esempio n. 1
0
 public bool IsValidFor(ImmutableBubbleBurstGrid grid)
 {
     return(Locations.All(location => grid[location.X, location.Y] == Colour));
 }
Esempio n. 2
0
 public GameMove(ImmutableBubbleBurstGrid grid)
 {
     Score     = 0;
     GridState = grid;
     Moves     = new List <PointAndColour>();
 }
Esempio n. 3
0
 public BubbleGroupFinder(ImmutableBubbleBurstGrid grid, IEnumerable <BubbleGroup> parentsGroups)
 {
     _grid  = grid;
     _stats = new Dictionary <Bubble, int>();
     //_parentGroups = parentsGroups ?? Enumerable.Empty<BubbleGroup>();
 }
Esempio n. 4
0
 internal GameMove(ImmutableBubbleBurstGrid gridState, IList <PointAndColour> moves, int score)
 {
     Score     = score;
     Moves     = moves;
     GridState = gridState;
 }