00001 #include "osl/player.h" 00002 #include <iostream> 00003 00004 bool osl::isValid(Player player) 00005 { 00006 return player==BLACK || player==WHITE; 00007 } 00008 00009 std::ostream& osl::operator<<(std::ostream& os,Player player) 00010 { 00011 if(player==BLACK) 00012 return os << "+"; 00013 else 00014 return os << "-"; 00015 } 00016 00017 // ;;; Local Variables: 00018 // ;;; mode:c++ 00019 // ;;; c-basic-offset:2 00020 // ;;; End: