All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
printPosition.cc
Go to the documentation of this file.
1 /* printPiece.cc
2  */
3 #include "osl/square.h"
4 #include <iostream>
5 
6 using namespace osl;
7 int main()
8 {
9  unsigned long position;
10  while (std::cin >> position)
11  {
12  Square p = Square::makeDirect(position);
13  std::cout << p.x() << " " << p.y() << " " << std::boolalpha << p.isOnBoard() << std::endl;
14  }
15 }
16 
17 
18 /* ------------------------------------------------------------------------- */
19 // ;;; Local Variables:
20 // ;;; mode:c++
21 // ;;; c-basic-offset:2
22 // ;;; End: