2 Copyright (c) 2008 Yann Dirson <ydirson@altern.org>
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.
15 MoveDefinition movesDefinition
[] = {
22 for (unsigned i
= 0; i
< sizeof(movesDefinition
)/sizeof(movesDefinition
[0]); i
++)
23 m_moveDefinitions
.push_back(movesDefinition
[i
]);
26 QString
Bishop::name() const { return "bishop"; }
28 const std::vector
<MoveDefinition
> * const Bishop::movesDefinitions() const {
29 return &m_moveDefinitions
;
32 int Bishop::index() const { return 35; }
34 Bishop
* Bishop::self() {
35 static Bishop s_instance
;