printMove.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
printMove.cc
Go to the documentation of this file.
1 /* printMove.cc
2 */
3 #include "osl/move.h"
4 #include "osl/record/csa.h"
5 #include <iostream>
6
7 bool csa_mode = false;
8 using namespace osl;
9 void show(int move)
10 {
11 Move m = Move::makeDirect(move);
12 if (csa_mode)
13 std::cout << record::csa::show(m) << std::endl;
14 else
15 std::cout << m << std::endl;
16 }
17 int main()
18 {
19 long long move;
20 while (std::cin >> move)
21 {
22 int imove = move;
23 if (imove == move) {
24 show(imove);
25 } else {
26 std::cerr << (int)imove << "\n";
27 show(imove);
28 std::cerr << (int)(move>>32) << "\n";
29 show(move >> 32);
30 }
31 }
32 }
33
34
35 /* ------------------------------------------------------------------------- */