My Project
escape.cc
Go to the documentation of this file.
1/* escape.cc
2 */
4
7{
8 for (int a=0; a<3; ++a)
9 for (int d=0; d<3; ++d)
10 for (int p=0; p<8; ++p) // progress8
11 push_back(new FromEffect(a, d));
12}
13
16{
17 for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s) {
18 for (int a=PTYPE_MIN; a<=PTYPE_MAX; ++a) {
19 for (int p=0; p<8; ++p) // progress8
20 push_back(new PtypeAttacked(static_cast<Ptype>(s), static_cast<Ptype>(a)));
21 }
22 }
23}
24
27{
28 for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s) {
29 for (int a=PTYPE_PIECE_MIN; a<=PTYPE_MAX; ++a) {
30 for (int p=0; p<8; ++p) // progress8
31 push_back(new ImmediateEscape(static_cast<Ptype>(s), static_cast<Ptype>(a)));
32 }
33 }
34}
35
38{
39 for (int s=PTYPE_PIECE_MIN; s<=PTYPE_MAX; ++s)
40 push_back(new KingEscape(static_cast<Ptype>(s)));
41}
42
43/* ------------------------------------------------------------------------- */
44// ;;; Local Variables:
45// ;;; mode:c++
46// ;;; c-basic-offset:2
47// ;;; End:
移動元へのきき。attack defense は言葉の意味と逆で自分がattack
mutually exclusive set of features
Definition group.h:17
Ptype
駒の種類を4ビットでコード化する
Definition basic_type.h:84
@ PTYPE_PIECE_MIN
Definition basic_type.h:104
@ PTYPE_MAX
Definition basic_type.h:105
@ PTYPE_MIN
Definition basic_type.h:102