Shorten RuleSet variable for their checked range

Range is self-explanatory and not as confusing as checkRange.
This commit is contained in:
Unknown 2018-10-18 11:29:55 +02:00
parent 0aa3df30b4
commit e13962f371
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import 'package:rules_of_living/src/rules/RuleSet.dart';
import 'package:rules_of_living/src/rules/CellPattern.dart';
class GameOfLife implements RuleSet {
int checkRange = 1;
int range = 1;
List<CellPattern> patterns = <CellPattern>[
// Two blocks, offset
// ##

View File

@ -1,7 +1,7 @@
import 'package:rules_of_living/src/rules/CellPattern.dart';
abstract class RuleSet {
int checkRange;
int range;
List<CellPattern> patterns;
bool checkSurvival(int neighbors);