|
@@ -16,7 +16,7 @@ const tests = [
|
|
|
|
|
|
const testMap = BuildSchematicsMap(tests);
|
|
const testMap = BuildSchematicsMap(tests);
|
|
let testParts = ParseSchematics(testMap);
|
|
let testParts = ParseSchematics(testMap);
|
|
-testParts = ValiditeEngineParts(testParts);
|
|
|
|
|
|
+testParts = ValidateEngineParts(testParts);
|
|
|
|
|
|
console.log(util.inspect(testParts, { breakLength: Infinity, depth: 256, colors: true }));
|
|
console.log(util.inspect(testParts, { breakLength: Infinity, depth: 256, colors: true }));
|
|
|
|
|
|
@@ -84,13 +84,13 @@ function ParseSchematics(schematicsMap: string[][]): EnginePart[] {
|
|
/**
|
|
/**
|
|
* Validates all previously parsed Engine Parts
|
|
* Validates all previously parsed Engine Parts
|
|
*
|
|
*
|
|
- * An Engine Part is only valid if it's connected, even diagnally, to a
|
|
|
|
|
|
+ * An Engine Part is only valid if it's connected, even diagonally, to a
|
|
* symbol other than `.`.
|
|
* symbol other than `.`.
|
|
*
|
|
*
|
|
* @param {EnginePart[]} potentialParts All potential Engine Parts
|
|
* @param {EnginePart[]} potentialParts All potential Engine Parts
|
|
* @returns {EnginePart[]} A filtered list of all valid Engine Parts
|
|
* @returns {EnginePart[]} A filtered list of all valid Engine Parts
|
|
*/
|
|
*/
|
|
-function ValiditeEngineParts(potentialParts: EnginePart[]): EnginePart[] {
|
|
|
|
|
|
+function ValidateEngineParts(potentialParts: EnginePart[]): EnginePart[] {
|
|
|
|
|
|
return [];
|
|
return [];
|
|
}
|
|
}
|