/*
 *  structure.h
 *  Structure du cube
 *
 *  Created by Lionel BUCHELE on 30/03/11.
 *  Copyright 2011 EFREI. All rights reserved.
 *
 */
#include <iostream>

typedef struct cote
{
	
	struct cote *droite;
	struct cote *gauche;
	struct cote *haut;
	struct cote *bas;
	int cases[3][3];
	int name;
	
}cote;
typedef struct cote *pcote;

typedef struct cube
{
	pcote face[6];
	int heuristique;
	int cost;
	int rotation;
	struct cube *suivant;
}cube;
typedef cube *pcube;



void Initialisation(pcube rubi, int i);
void Destruction(pcube rubi);
void copyFace(pcote, pcote , pcube );
pcube copy(pcube copier, int index);
void affichageCube(pcube rubi, int i);
void DestructionNode(pcube rubi);
