Disallow GOL rulesets with no B states
This commit is contained in:
parent
d040de396a
commit
5f90a80fe3
@ -13,6 +13,10 @@ int ParseGOLString(const String &value)
|
|||||||
{
|
{
|
||||||
begin |= 1U << (it[0] - '0');
|
begin |= 1U << (it[0] - '0');
|
||||||
}
|
}
|
||||||
|
if (!begin)
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// Must have a /S immediately afterwards
|
// Must have a /S immediately afterwards
|
||||||
if (it < value.end() - 1 && it[0] == '/' && it[1] == 'S')
|
if (it < value.end() - 1 && it[0] == '/' && it[1] == 'S')
|
||||||
|
Reference in New Issue
Block a user