e88d69a8 BA |
1 | import { ChessRules } from "@/base_rules"; |
2 | |
3 | export class FreecaptureRules extends ChessRules { |
7e8a7ea1 |
4 | |
e88d69a8 BA |
5 | canTake() { |
6 | // Can capture both colors: |
7 | return true; |
8 | } |
9 | |
10 | static get SEARCH_DEPTH() { |
11 | return 2; |
12 | } |
7e8a7ea1 |
13 | |
e88d69a8 |
14 | }; |