CPW-Engine main

From Chessprogramming wiki
Jump to: navigation, search

Home * Engines * CPW-Engine * main

The main routine of the engine.

Code

Header

enum etask {
  TASK_NOTHING,
  TASK_SEARCH
} extern task;

int main()

int main() {
  com_init();

  while (1) {
    if (task == TASK_NOTHING) {
      com();
    }
    else {
      root();
      task = TASK_NOTHING;
    }
  }
  return 0;
}

External Calls

Up one Level