Structs.hh
/**
 * Conversion from char to direction.
 */
Conversion from char to direction.
Conversion from char to direction .
inline int char2Dir (char c) {
  switch (c) {
  case 'd': return Down;
  case 'r': return Right;
  case 'u': return Up;
  case 'l': return Left;
  }
  return -1; 
}
inline int char2Dir ( char c ) { switch ( c ) { case ' ' : return Down ; case ' ' : return Right ; case ' ' : return Up ; case ' ' : return Left ; } return -1 ; }
Conversion from char to direction.
Conversion from char to direction .
// Can't abort: if data is corrupted, master will fail.