All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
player.cc
Go to the documentation of this file.
1 #include "osl/player.h"
2 #include <iostream>
3 
4 bool osl::isValid(Player player)
5 {
6  return player==BLACK || player==WHITE;
7 }
8 
9 std::ostream& osl::operator<<(std::ostream& os,Player player)
10 {
11  if(player==BLACK)
12  return os << "+";
13  else
14  return os << "-";
15 }
16 
17 // ;;; Local Variables:
18 // ;;; mode:c++
19 // ;;; c-basic-offset:2
20 // ;;; End: