*
*/
#ifndef _BITBOARD64_H
#define _BITBOARD64_H
#include <netinet/in.h>
#include <iostream>
#include <cstdio>
namespace libhexx
{
printf("0x%X, 0x%X\n", lowbits, highbits);
};
friend std::ostream& operator<<(std::ostream &output, const class BitBoard64 &b);
friend std::istream& operator>>(std::istream &input, class BitBoard64 &b);
private:
uint32_t lowbits, highbits;
std::ostream& operator<<(std::ostream &output, const class BitBoard64 &b);
std::istream& operator>>(std::istream &input, class BitBoard64 &b);
}
#endif
class Move;
class Move
class MoveList;
public:
Move();
Move(int t);
Move(int f, int t);
operator bool() const;
char from, to;
int score;
bool scoreMoves(std::vector<Move> &moves, class Board board,
const LookUp& lookUp, int depth, bool (*callback)(), int maxtime);
enum
#include "bitboard64.h"
#include "move.h"
#include "board.h"
class BitBoard64;
int getHexxagonIndex(int x, int y);
class LookUp
return true;
Move::Move() { from = 99; to = 99;};
Move::Move(int t) { from = t; to = t; };
Move::Move(int f, int t) { from = f; to = t; };
Move::operator bool() const
return from != 99 && to != 99;
#ifndef _MOVE_H
#define _MOVE_H
#include <list>
#include <vector>
class Board;
Move() { from = 99; to = 99;};
Move(int t) { from = t; to = t; };
Move(int f, int t) { from = f; to = t; };
inline bool operator<(const Move &r) const
return (score != r.score);
operator bool() const { return from != 99 && to != 99; };