-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_move.cpp
More file actions
43 lines (28 loc) · 931 Bytes
/
test_move.cpp
File metadata and controls
43 lines (28 loc) · 931 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
#include "Board.hpp"
#include "move.hpp"
int main(){
Board board{};
Board board2{0x101C2422200000ULL,0x2028201A00020200ULL};
Board board3{board2};
std::cout << "\nBoard3=================================\n" << std::endl;
board3.print_board();
std::cout <<"\nBoard=============================\n" << std::endl;
board.print_board();
int x_move = 1;
int y_move = 7;
int bit = 8*y_move + (7-x_move);
board2.make_move(bit, WHITE);
std::cout <<"\nBoard2=============================\n" << std::endl;
board2.print_board();
std::cout << "===========Move===========\n" << std::endl;
move mv = {
board3,
62,
WHITE
};
Board board4 = board_after_move(mv);
std::cout <<"\nBoard4=============================\n" << std::endl;
board4.print_board();
std::cout << "Board : "<< &board << "\nBoard2 : "<< &board2 << "\nBoard3 : "<< &board3 << "\nBoard4 : " << &board4 << std::endl;
}