Shorten RuleSet variable for their checked range
Range is self-explanatory and not as confusing as checkRange.
This commit is contained in:
parent
0aa3df30b4
commit
e13962f371
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import 'package:rules_of_living/src/rules/RuleSet.dart';
|
||||||
import 'package:rules_of_living/src/rules/CellPattern.dart';
|
import 'package:rules_of_living/src/rules/CellPattern.dart';
|
||||||
|
|
||||||
class GameOfLife implements RuleSet {
|
class GameOfLife implements RuleSet {
|
||||||
int checkRange = 1;
|
int range = 1;
|
||||||
List<CellPattern> patterns = <CellPattern>[
|
List<CellPattern> patterns = <CellPattern>[
|
||||||
// Two blocks, offset
|
// Two blocks, offset
|
||||||
// ##
|
// ##
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import 'package:rules_of_living/src/rules/CellPattern.dart';
|
import 'package:rules_of_living/src/rules/CellPattern.dart';
|
||||||
|
|
||||||
abstract class RuleSet {
|
abstract class RuleSet {
|
||||||
int checkRange;
|
int range;
|
||||||
List<CellPattern> patterns;
|
List<CellPattern> patterns;
|
||||||
|
|
||||||
bool checkSurvival(int neighbors);
|
bool checkSurvival(int neighbors);
|
||||||
|
|
Loading…
Reference in a new issue