/// <summary> /// Get the given Engine's current position's hash. /// </summary> public ulong Hash(MyGreatEngine ngin) { //This is here 'just in case', normally the engine keeps its hash up to date incrementally ulong h = 0; byte k; for (int i = 0; i < Gamestate.sizeX; i++) { for (int j = 0; j < Gamestate.sizeY; j++) { k = ngin[i, j]; if (k != 0) { h = h ^ Table[i, j, k - 1]; } } } return(h); }
const bool clickMove = true; //enable moves by clicking the board (otherwise text input?) public GUI(Gamestate gs) { InitializeComponent(); GS = gs; Engine = new MyGreatEngine(this); }