Evaluates basic patterns on board.
| 71 | |
| 72 | /// Evaluates basic patterns on board. |
| 73 | inline Value evaluateBasic(const StateInfo &st, Color self) |
| 74 | { |
| 75 | return self == BLACK ? st.valueBlack : -st.valueBlack; |
| 76 | } |
| 77 | |
| 78 | /// Finds a margin for switching to classical evaluation if |
| 79 | /// it falls outside alpha-beta window with this margin. |