Added legality checking to shogi.
[tagua/yd.git] / src / hlvariant / minichess5 / variant.h
blob882c4ca4bac692f5fa7e2754cc0819c2cb990819
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef HLVARIANT__MINICHESS5__VARIANT_H
12 #define HLVARIANT__MINICHESS5__VARIANT_H
14 #include "../chess/variant.h"
16 class VariantInfo;
18 namespace HLVariant {
19 namespace Minichess5 {
21 struct TAGUA_EXPORT Variant {
22 typedef Chess::Move Move;
23 typedef Chess::Piece Piece;
24 typedef CustomBoard<5, 5, Piece> Board;
25 typedef Chess::GameState<Board, Move> GameState;
26 typedef Chess::LegalityCheck<GameState> LegalityCheck;
27 typedef Chess::MoveGenerator<LegalityCheck> MoveGenerator;
28 typedef Chess::Serializer<MoveGenerator> Serializer;
29 typedef SimpleAnimator<Variant> Animator;
30 typedef MoveFactory<GameState> MoveFactory;
32 static const bool hasICS = false;
33 static const bool m_simple_moves = false;
34 static const char *m_name;
35 static const char *m_theme_proxy;
37 static int moveListLayout() { return 0; }
39 static VariantInfo* static_variant;
40 static VariantInfo* info();
41 static OptList positionOptions() { return OptList(); }
44 } // namespace Minichess5
45 } // namespace HLVariant
48 #endif // HLVARIANT__MINICHESS5__VARIANT_H