删除无用的 location.cpp/h

This commit is contained in:
Calcitem 2020-06-26 18:04:23 +08:00
parent 3e47540613
commit 0f89043a8e
6 changed files with 3 additions and 114 deletions

View File

@ -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 \

View File

@ -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" />

View File

@ -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">

View File

@ -23,7 +23,6 @@
#include <vector>
#include "config.h"
#include "location.h"
#include "rule.h"
#include "types.h"

View File

@ -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;
}

View File

@ -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
0x110x1C 112
0x210x2C 112
(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 */