Merge branch 'Team_CMU_MergeBase' of https://github.com/MMRVZ2017/MPK.Puzzle into Team_CMU_MergeBase
This commit is contained in:
@ -20,7 +20,7 @@ void Puzzle::putIntoBox()
|
||||
{
|
||||
//TODO! add rotation of all parts
|
||||
//TODO! add id to every part (how)
|
||||
tmpPart.m_test1=this->a1->m_constraintMatrix[i][j];
|
||||
tmpPart.m_test1=this->a1.m_constraintMatrix[i][j];
|
||||
//TODO! add all other layers here
|
||||
myBox.emplace_back(tmpPart);
|
||||
}
|
||||
@ -36,14 +36,15 @@ void Puzzle::shuffle()
|
||||
//deletes all constraints from all abstractionlayers
|
||||
void Puzzle::removeConstrains(coor removeCoordinates)
|
||||
{
|
||||
this->a1->RemoveConstraintOnPosition(removeCoordinates);
|
||||
this->a1.RemoveConstraintOnPosition(removeCoordinates);
|
||||
}
|
||||
|
||||
void Puzzle::createRandomPuzzle()
|
||||
{
|
||||
a1->CreateRandomPuzzle();
|
||||
a1.CreateRandomPuzzle();
|
||||
}
|
||||
|
||||
void Puzzle::createp_box()
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ void solve(vector<LogEntry>& log, vector<Part*>& p_Box, Puzzle& puzzleMat)
|
||||
switch(log.back().abstractionLevel)
|
||||
{
|
||||
case 1:
|
||||
puzzleMat.a1->EvaluateQuality(log.back().myCoor, log.back().PieceCollector);
|
||||
puzzleMat.a1.EvaluateQuality(log.back().myCoor, log.back().PieceCollector);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user