CORE SOURCE CODE solving 8 Puzzle AI problems written in MS Visual MFC C++.

COMPLETE Full set of working SOURCE CODE for the working MFC C++ program, SPEED UP your learning process,
just 4.99 USD. Email / Paypal to ahyeek@gmail.com

Full working program can be downloaded to TRY out: AI 8-puzzle (8 Puzzle) solver

Friday, May 9, 2008

8 Puzzle Code - StateNode.h

#define SIZE 9
class StateNode{
public:
char puzzle[SIZE];
char parentstate[SIZE];


StateNode* next;

StateNode(){
next=NULL;
}

void setPuzzle(char* p){
for(int v=0; v<SIZE; v++) puzzle[v]=*(p+v);
}

void setParentState(char *pp){
for(int v=0; v<SIZE; v++) parentstate[v]=*(pp+v);
}
};

No comments: