All pastes #248484 Raw Edit

Something

public c v1 · immutable
#248484 ·published 2006-11-14 18:48 UTC
rendered paste body
#ifndef KNIGHTSTOUR_H_	  #define KNIGHTSTOUR_H_	  /* Define boolean Values */  #define BTRUE 1  #define BFALSE 0    /* Define max. number of valid Jumps for a Knight */  #define MAX_VALID_JUMPS 8    /* Structs */  struct position { int x; int y; };   typedef struct position position_t;    /* Methods */  void initFieldCounter();  int solve();  int isUnsolvable();  void rJump(int position, int jumpCounter);  int calcValidJumps(int position, int * array, int length);  int getValidJumpsCount(int position);  void updateFieldCounter(int * positions, int positionsLength, int skipPosition, int value);  int inBounds(position_t *pos);  int toInteger(position_t *pos);  void toPosition(int val, position_t *pos);  #endif /*KNIGHTSTOUR_H_*/