Structs.hh
/**
 * Conversion from direction to char.
 */
Conversion from direction to char.
Conversion from direction to char .
inline char Dir2char (int d) {
  switch (d) {
  case Down:   return 'd';
  case Right:  return 'r';
  case Up:     return 'u';
  case Left:   return 'l';
  default:     return '_';
  }
}
inline char Dir2char ( int d ) { switch ( d ) { case Down : return ' ' ; case Right : return ' ' ; case Up : return ' ' ; case Left : return ' ' ; default : return ' ' ; } }
Conversion from direction to char.
Conversion from direction to char .