2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
10 #ifndef CRAZYHOUSE__VALIDATOR_H
11 #define CRAZYHOUSE__VALIDATOR_H
13 #include <core/component.h>
14 #include <core/delegators/validator.h>
19 namespace Crazyhouse
{
21 class Validator
: public Component
, public Delegators::Validator
{
24 Validator(IValidator
* validator
);
27 virtual bool pseudolegal(const IState
* state
, Move
& move
) const;
28 const IColor
* mover(const IState
* state
, const Move
& move
) const;
31 } // namespace Crazyhouse
33 #endif // CRAZYHOUSE__VALIDATOR_H