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

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{
char puzzle[SIZE];
char parentstate[SIZE];

StateNode* next;


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: