.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user