--- queensgui/src/solution.h 2010/04/22 20:09:09 654 +++ queensgui/src/solution.h 2010/04/23 05:57:28 655 @@ -17,35 +17,75 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef SOLUTION_H -#define SOLUTION_H +#ifndef SOLUTIONINT_H +#define SOLUTIONINT_H +//#include +#include "config.h" -/** -@author Torben Nielsen -*/ -class Solution +class Solution { public: - virtual ~Solution() {} + Solution(int size); + + ~Solution(); + + //bool getMatrix(int x, int y); + bool getMatrix(int x, int y) { + return (m_matrix[x] == y); + } + + + //void setMatrix(int x, int y, bool val); + void setMatrix(int x, int y, bool val) { + if (val == true) + m_matrix[x] = y; + else + m_matrix[x] = -1; + } + + + + bool operator ==(const Solution& sol); + + Solution* copy(); + + //void mirror(); + void mirror() { + unsigned char temp[MAX_SIZE]; + for (int i=0; i