From 507533531ce37c3c255eb622232bbfcdf37c537d Mon Sep 17 00:00:00 2001 From: Raphael Maenle <17550607+g-spacewhale@users.noreply.github.com> Date: Mon, 18 Dec 2017 22:50:03 +0100 Subject: [PATCH] unfinished merge, problems with randomgenerator random generator in class needs to return a randomized puzzlebox --- .../Layer1/AbstractionLayer_1.cpp | 90 ++++++++++++------- .../Layer1/AbstractionLayer_1.h | 3 +- Source/header/solve.h | 1 + 3 files changed, 59 insertions(+), 35 deletions(-) diff --git a/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.cpp b/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.cpp index a1cf9a9..d5cf7ba 100644 --- a/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.cpp +++ b/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.cpp @@ -13,12 +13,18 @@ void AbstractionLayer_1::PreProcessing(const vector* partArray) bool AbstractionLayer_1::EvalueteQuality (const coor constraintCoordinate, qualityVector& qVector) { - + for(int i=0;i> (shifts*2) | Part << sizeof(uint8_t)*8 - (shifts*2); +} + diff --git a/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.h b/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.h index 95f480e..31daab2 100644 --- a/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.h +++ b/Source/functions/AbstractionLayers/Layer1/AbstractionLayer_1.h @@ -18,7 +18,8 @@ public: bool EvalueteQuality (const coor constraintCoordinate, qualityVector& qVector); bool SetConstraintOnPosition(const coor constraintCoordinate, const AbstractionLayer_1_Properties constraint); bool RemoveConstraintOnPosition(const coor constraintCoordinate); - + bool PlaceOfPartGood(coor myCoor, uint8_t& myPart); + void shift(uint8_t& Part, int shifts); void setEdgeZero(); diff --git a/Source/header/solve.h b/Source/header/solve.h index ad72406..a54d4ff 100755 --- a/Source/header/solve.h +++ b/Source/header/solve.h @@ -1,5 +1,6 @@ #include #include +#include "input.h" #include #include