File: printPdp.cc

package info (click to toggle)
libosl 0.8.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,328 kB
  • sloc: cpp: 114,345; ruby: 1,290; ansic: 915; makefile: 431; perl: 309; sh: 35
file content (28 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* printPdp.cc
 */
#include "osl/checkmate/proofDisproof.h"
#include <iostream>

using namespace osl;
using namespace osl::checkmate;
int main()
{
  std::cout << "Checkmate "     << ProofDisproof::Checkmate()    .ulonglongValue() << "\n";
  std::cout << "NoEscape "      << ProofDisproof::NoEscape()     .ulonglongValue() << "\n";
  std::cout << "NoCheckmate "   << ProofDisproof::NoCheckmate()  .ulonglongValue() << "\n";
  std::cout << "LoopDetection " << ProofDisproof::LoopDetection().ulonglongValue() << "\n";
  std::cout << "PawnCheckmate " << ProofDisproof::PawnCheckmate().ulonglongValue() << "\n";
  std::cout << "ProofLimit "    << ProofDisproof::PROOF_LIMIT    << "\n";
  std::cout << "DisproofLimit " << ProofDisproof::DISPROOF_LIMIT << "\n";
  unsigned long long pdp;
  while (std::cin >> pdp)
  {
    std::cout << ProofDisproof::makeDirect(pdp) << "\n";
  }
}

/* ------------------------------------------------------------------------- */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: