This is a temporary, read-only recovery of the chessprogrammingwiki while a longer-term plan is worked out. Editing is not possible right now, but will be again soon.
Chess Programming Wiki All pages Other namespaces

CPW-Engine main

Home * Engines * CPW-Engine * main

The main routine of the engine.

Contents
  1. Code
    1. Header
    2. int main()
  2. External Calls

Code

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

What links here

Contributors: GerdIsenberg.