-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmove.h
More file actions
27 lines (22 loc) · 639 Bytes
/
move.h
File metadata and controls
27 lines (22 loc) · 639 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
/**
* move.h
*
* the MicroChess project: https://github.com/ripred/MicroChess
*
* header file for MicroChess
*
*/
#ifndef MOVE_INCL
#define MOVE_INCL
////////////////////////////////////////////////////////////////////////////////////////
// an entry in a move list
class move_t
{
public:
int8_t from : NUM_BITS_SPOT, // the index into the board the move starts at
to : NUM_BITS_SPOT; // the index into the board the move finishes at
int32_t value; // the value of the move
move_t();
move_t(index_t f, index_t t, long v);
}; // move_t
#endif // MOVE_INCL