cw: added multios
This commit is contained in:
parent
835cba33dd
commit
0a2de22e63
@ -72,7 +72,7 @@ bool AbstractionLayer_1::RemoveConstraintOnPosition(const coor constraintCoordin
|
|||||||
void AbstractionLayer_1::CreateRandomPuzzle()
|
void AbstractionLayer_1::CreateRandomPuzzle()
|
||||||
{
|
{
|
||||||
std::minstd_rand simple_rand;
|
std::minstd_rand simple_rand;
|
||||||
simple_rand.seed((unsigned int)"dumbo");
|
simple_rand.seed((unsigned int)time(nullptr)); //dumbo
|
||||||
|
|
||||||
for(int col = 0; col < m_constraintMatrix.size()-2; col++){
|
for(int col = 0; col < m_constraintMatrix.size()-2; col++){
|
||||||
for(int row = 0; row < (m_constraintMatrix[col].size() - 2);)
|
for(int row = 0; row < (m_constraintMatrix[col].size() - 2);)
|
||||||
|
@ -24,7 +24,15 @@
|
|||||||
#include <bitset>
|
#include <bitset>
|
||||||
|
|
||||||
#define DISPLAY false
|
#define DISPLAY false
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
#define PATH "..\\..\\..\\pieces\\%04d.jpg"
|
#define PATH "..\\..\\..\\pieces\\%04d.jpg"
|
||||||
|
#elif defined __unix__
|
||||||
|
#define PATH "..//..//..//pieces//%04d.jpg"
|
||||||
|
#elif defined __APPLE__
|
||||||
|
#define PATH "..//..//..//pieces//%04d.jpg"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define IMG_SIZE 400
|
#define IMG_SIZE 400
|
||||||
#define TOP 6
|
#define TOP 6
|
||||||
#define RIGHT 4
|
#define RIGHT 4
|
||||||
|
@ -128,7 +128,6 @@ Mat Puzzle::readImage(int fileIndex, const char* inputDir){
|
|||||||
}
|
}
|
||||||
|
|
||||||
Mat Puzzle::resultImage( vector<LogEntry>& log){
|
Mat Puzzle::resultImage( vector<LogEntry>& log){
|
||||||
|
|
||||||
int Y_size = 600; // chose this to fit your monitor!
|
int Y_size = 600; // chose this to fit your monitor!
|
||||||
int separator = 1;
|
int separator = 1;
|
||||||
int partHeight = 90;
|
int partHeight = 90;
|
||||||
|
Loading…
Reference in New Issue
Block a user