删除无用的 location.cpp/h
This commit is contained in:
parent
3e47540613
commit
0f89043a8e
|
@ -34,7 +34,6 @@ SOURCES += \
|
|||
src/base/zobrist.cpp \
|
||||
src/game/bitboard.cpp \
|
||||
src/game/board.cpp \
|
||||
src/game/location.cpp \
|
||||
src/game/option.cpp \
|
||||
src/game/player.cpp \
|
||||
src/game/position.cpp \
|
||||
|
@ -75,7 +74,6 @@ HEADERS += \
|
|||
src/base/zobrist.h \
|
||||
src/game/bitboard.h \
|
||||
src/game/board.h \
|
||||
src/game/location.h \
|
||||
src/game/option.h \
|
||||
src/game/player.h \
|
||||
src/game/position.h \
|
||||
|
|
|
@ -472,7 +472,6 @@
|
|||
<ClInclude Include="src\base\zobrist.h" />
|
||||
<ClInclude Include="src\game\bitboard.h" />
|
||||
<ClInclude Include="src\game\board.h" />
|
||||
<ClInclude Include="src\game\location.h" />
|
||||
<ClInclude Include="src\game\option.h" />
|
||||
<ClInclude Include="src\game\player.h" />
|
||||
<ClInclude Include="src\game\position.h" />
|
||||
|
@ -726,7 +725,6 @@
|
|||
<ClCompile Include="src\base\zobrist.cpp" />
|
||||
<ClCompile Include="src\game\bitboard.cpp" />
|
||||
<ClCompile Include="src\game\board.cpp" />
|
||||
<ClCompile Include="src\game\location.cpp" />
|
||||
<ClCompile Include="src\game\option.cpp" />
|
||||
<ClCompile Include="src\game\player.cpp" />
|
||||
<ClCompile Include="src\game\position.cpp" />
|
||||
|
|
|
@ -120,9 +120,6 @@
|
|||
<ClInclude Include="src\game\option.h">
|
||||
<Filter>game</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="src\game\location.h">
|
||||
<Filter>game</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="src\base\stack.h">
|
||||
<Filter>base</Filter>
|
||||
</ClInclude>
|
||||
|
@ -371,9 +368,6 @@
|
|||
<ClCompile Include="src\game\option.cpp">
|
||||
<Filter>game</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="src\game\location.cpp">
|
||||
<Filter>game</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="src\base\memmgr.cpp">
|
||||
<Filter>base</Filter>
|
||||
</ClCompile>
|
||||
|
@ -455,9 +449,6 @@
|
|||
</Image>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Media Include="resources\sound\Select.wav">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Media>
|
||||
<Media Include="resources\sound\drog.wav">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Media>
|
||||
|
@ -485,12 +476,6 @@
|
|||
<Media Include="resources\sound\BlockMill_W.wav">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Media>
|
||||
<Media Include="resources\sound\Remove_B.wav">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Media>
|
||||
<Media Include="resources\sound\Remove_W.wav">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Media>
|
||||
<Media Include="resources\sound\Draw.wav">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Media>
|
||||
|
@ -560,6 +545,9 @@
|
|||
<Media Include="resources\sound\GiveUp_W.wav">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Media>
|
||||
<Media Include="resources\sound\Capture_B.wav" />
|
||||
<Media Include="resources\sound\Capture_W.wav" />
|
||||
<Media Include="resources\sound\choose.wav" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtRcc Include="gamewindow.qrc">
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <vector>
|
||||
|
||||
#include "config.h"
|
||||
#include "location.h"
|
||||
#include "rule.h"
|
||||
#include "types.h"
|
||||
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
Sanmill, a mill game playing engine derived from NineChess 1.5
|
||||
Copyright (C) 2015-2018 liuweilhy (NineChess author)
|
||||
Copyright (C) 2019-2020 Calcitem <calcitem@outlook.com>
|
||||
|
||||
Sanmill is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Sanmill is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "location.h"
|
||||
|
||||
Location::Location()
|
||||
{
|
||||
}
|
||||
|
||||
Location::~Location()
|
||||
{
|
||||
}
|
||||
|
||||
Location &Location::operator= (const Location &other)
|
||||
{
|
||||
if (this == &other)
|
||||
return *this;
|
||||
|
||||
// TODO: Implement
|
||||
|
||||
return *this;
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
/*
|
||||
Sanmill, a mill game playing engine derived from NineChess 1.5
|
||||
Copyright (C) 2015-2018 liuweilhy (NineChess author)
|
||||
Copyright (C) 2019-2020 Calcitem <calcitem@outlook.com>
|
||||
|
||||
Sanmill is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Sanmill is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LOCATION_H
|
||||
#define LOCATION_H
|
||||
|
||||
#include "config.h"
|
||||
#include "option.h"
|
||||
#include "types.h"
|
||||
#include "rule.h"
|
||||
|
||||
// 棋局,抽象为一个(5×8)的数组,上下两行留空
|
||||
/*
|
||||
0x00 代表无棋子
|
||||
0x0F 代表禁点
|
||||
0x11~0x1C 代表先手第 1~12 子
|
||||
0x21~0x2C 代表后手第 1~12 子
|
||||
判断棋子是先手的用 (locations[i] & 0x10)
|
||||
判断棋子是后手的用 (locations[i] & 0x20)
|
||||
*/
|
||||
|
||||
class Location
|
||||
{
|
||||
public:
|
||||
Location();
|
||||
~Location();
|
||||
|
||||
Location & operator=(const Location &);
|
||||
|
||||
inline static void setBan(location_t &location)
|
||||
{
|
||||
assert(rule.hasBannedLocations == true);
|
||||
location = BAN_STONE;
|
||||
}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif /* LOCATION_H */
|
||||
|
Loading…
Reference in New Issue