[LIB-9] Separate chesshog-hedgefish module
[chesshog.git] / chesshog-hedgefish / src / main / java / org / hedgecode / chess / hedgefish / Types.java
1 /*
2  * Copyright (c) 2018. Developed by Hedgecode.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.hedgecode.chess.hedgefish;
18
19 /**
20  *
21  *
22  * @author Dmitry Samoshin aka gotty
23  */
24 public final class Types {
25
26     public static final int MAX_MOVES = 256;
27     public static final int MAX_PLY   = 128;
28
29     public enum MoveType {
30         NORMAL,
31         PROMOTION,
32         ENPASSANT,
33         CASTLING
34     }
35
36     public enum Color {
37         WHITE,
38         BLACK,
39         COLOR_NB
40     }
41
42     public enum CastlingSide {
43         KING_SIDE,
44         QUEEN_SIDE,
45         CASTLING_SIDE_NB
46     }
47
48     public enum CastlingRight {
49         NO_CASTLING,
50         WHITE_OO,
51         WHITE_OOO,
52         BLACK_OO,
53         BLACK_OOO,
54         ANY_CASTLING,
55         CASTLING_RIGHT_NB
56     }
57
58     public enum Phase {
59         PHASE_ENDGAME,
60         PHASE_MIDGAME,
61         MG,
62         EG,
63         PHASE_NB
64     }
65
66     public enum ScaleFactor {
67         SCALE_FACTOR_DRAW,
68         SCALE_FACTOR_NORMAL,
69         SCALE_FACTOR_MAX,
70         SCALE_FACTOR_NONE
71     }
72
73     public enum Bound {
74         BOUND_NONE,
75         BOUND_UPPER,
76         BOUND_LOWER,
77         BOUND_EXACT
78     }
79
80 //    enum Value
81
82     public enum PieceType {
83         NO_PIECE_TYPE,
84         PAWN,
85         KNIGHT,
86         BISHOP,
87         ROOK,
88         QUEEN,
89         KING,
90         ALL_PIECES,
91         PIECE_TYPE_NB
92     }
93
94     public enum Piece {
95         NO_PIECE,
96         W_PAWN, W_KNIGHT, W_BISHOP, W_ROOK, W_QUEEN, W_KING,
97         B_PAWN, B_KNIGHT, B_BISHOP, B_ROOK, B_QUEEN, B_KING,
98         PIECE_NB
99     }
100
101 //  ...
102
103 }