gate definitions refactoring

This commit is contained in:
klemek
2020-12-17 19:26:11 +01:00
parent 0ea30c4829
commit 9ea26d2563
7 changed files with 338 additions and 597 deletions
+2
View File
@@ -23,6 +23,8 @@ namespace UntitledLogicGame
public static bool[][] AllBoolArrayValues(int length)
{
if (length == 0)
return new bool[0][];
var count = (int)Math.Pow(2, length);
return new ArrayList[count].Select((v, i) => i.ToBoolArray(length)).ToArray();
}