the BLAM page -- Doxygen documentation |
00001 00006 #ifndef BILLES_H 00007 #define BILLES_H 00008 00009 using namespace std; 00010 00011 #include <vector> 00012 #include <iostream> 00013 #include <fstream> 00014 #include <string> 00015 00017 class nzGame { 00018 private: 00019 int cases[17]; 00020 int holePos; 00021 string symbols[3]; 00022 bool accessible(int, int); 00023 bool allowed(int moveTo); 00024 void reset(); 00025 void moveHole(int); 00026 void display(); 00027 void displayCoups(); 00028 void gameWon(); 00029 int sgn(int); 00030 int score(); 00031 00032 public: 00034 nzGame(); 00036 vector<int> coups; 00038 bool tryMove(int); 00040 int lastMove(); 00042 void playSequence(vector<int>); 00044 void resetTo(vector<int>); 00046 void writeSeq(int, int); 00048 void writeSeq(); 00050 static int voisins[17][8]; 00051 }; 00052 00053 #endif