This commit is contained in:
Maxime Vorwerk
2023-07-19 19:37:50 +02:00
parent c5bf09836f
commit 6657154f41
4 changed files with 107 additions and 168 deletions

View File

@@ -1,14 +1,23 @@
namespace CubeShapeCounting {
internal class Program {
private int _numBlocks = 0;
//private Dictionary<>();
private Dictionary<Shape.ImmutableOrientedShape, int>[] _knownShapes;
public Program(int numBlocks) {
this._numBlocks = numBlocks;
_numBlocks = numBlocks;
_knownShapes = new Dictionary<Shape.ImmutableOrientedShape, int>[numBlocks - 1];
for (int i = 0; i < _numBlocks - 1; i++)
_knownShapes[i] = new Dictionary<Shape.ImmutableOrientedShape, int>();
}
public void Start() {
Stack<Shape> shapes = new Stack<Shape>();
shapes.Push(Shape.GetCube());
while (shapes.Count > 0) {
Shape shape = shapes.Pop();
List<(int, int, int)> next_spaces = shape.GetGrowableSpaces();
}
}
static void Main(string[] args) {
@@ -19,8 +28,7 @@
int numBlocks;
try {
numBlocks = Int32.Parse(args[0]);
}
catch {
} catch {
Console.WriteLine("Cannot parse" + args[0] + "as an Int32.");
return;
}