src/visualiser.c
static bool handle_algorithm(RunState type) {
  // Initialise function
  init_algorithm(type);

  if (type == RECURSIVE_BACKTRACK) {
    SetWindowTitle(run_messages[type]);
    run_recursive_backtrack(tiles, player);
  } else {
    if (IsKeyDown(KEY_LEFT_SHIFT)) {
      state = state ? HALT : type;
    } else {
      return run_algorithm(type);
    }
  }

  // Return unsucessful
  return false;
}
/** Initialises and runs the given algorithm. */
Initialises and runs the given algorithm.
Initialises and runs the given algorithm .
static bool handle_algorithm(RunState type) {
  init_algorithm(type);
  if (type == RECURSIVE_BACKTRACK) {
    SetWindowTitle(run_messages[type]);
    run_recursive_backtrack(tiles, player);
  } else {
    if (IsKeyDown(KEY_LEFT_SHIFT)) {
      state = state ? HALT : type;
    } else {
      return run_algorithm(type);
    }
  }
  return false;
}
static bool handle_algorithm ( RunState type ) { init_algorithm ( type ) ; if ( type == RECURSIVE_BACKTRACK ) { SetWindowTitle ( run_messages [ type ] ) ; run_recursive_backtrack ( tiles , player ) ; } else { if ( IsKeyDown ( KEY_LEFT_SHIFT ) ) { state = state ? HALT : type ; } else { return run_algorithm ( type ) ; } } return false ; }
Initialises and runs the given algorithm.
Initialises and runs the given algorithm .
// Initialise function // Return unsucessful