Skip to content

Commit f8105f6

Browse files
committed
v2.3.2
1 parent acd75b5 commit f8105f6

File tree

10 files changed

+7
-14
lines changed

10 files changed

+7
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Cinnamon is a chess program for Windows, Linux, Mac OS, Android and Raspberry Pi
66

77
Version
88
----------
9-
2.3.1
9+
2.3.2
1010

1111
News
1212
----------

src/GenMoves.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ void GenMoves::generateMoves(const int side, const u64 allpieces) {
4141

4242
bool GenMoves::generateCaptures(const int side, const u64 enemies, const u64 friends) {
4343
ASSERT_RANGE(side, 0, 1)
44-
auto a = side ? generateCaptures<WHITE>(enemies, friends) : generateCaptures<BLACK>(enemies, friends);
45-
return a;
44+
return side ? generateCaptures<WHITE>(enemies, friends) : generateCaptures<BLACK>(enemies, friends);
4645
}
4746

4847
void GenMoves::setPerft(const bool b) {

src/IterativeDeeping.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ void IterativeDeeping::run() {
111111

112112
searchManager.startClock();
113113
searchManager.clearHeuristic();
114-
auto hash = Hash::getInstance();
115114
hash.clearAge();
116115
searchManager.setForceCheck(false);
117116

src/IterativeDeeping.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class IterativeDeeping : public Thread<IterativeDeeping> {
8181
SearchManager &searchManager = Singleton<SearchManager>::getInstance();
8282
int maxDepth;
8383
string bestmove;
84-
84+
Hash& hash = Hash::getInstance();
8585
volatile long running;
8686
OpenBook *openBook = nullptr;
8787
bool ponderEnabled;

src/Uci.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ void Uci::listner(IterativeDeeping *it) {
4444
string gaviotatbscheme;
4545
string dumpFile;
4646
static const string _BOOLEAN[] = {"false", "true"};
47-
auto hash = Hash::getInstance();
4847
while (!stop) {
4948
if (!getline(cin, command)) {
5049
break;

src/Uci.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class Uci: public Singleton<Uci> {
2828
private:
2929
Uci();
3030

31+
Hash& hash = Hash::getInstance();
32+
3133
SearchManager &searchManager = Singleton<SearchManager>::getInstance();
3234

3335
bool uciMode;

src/namespaces/bits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ namespace _def {
147147
static inline u64 shiftForward(const u64 bits) {
148148
ASSERT(shift == 7 || shift == 8 || shift == 9);
149149

150-
auto a = side == WHITE ? bits << shift : bits >> shift;
150+
const auto a = side == WHITE ? bits << shift : bits >> shift;
151151
if (shift == 7)
152152
return a & NO_FILE_LEFT[side];
153153
if (shift == 9)

src/namespaces/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
using namespace std;
2727
namespace constants {
2828

29-
static const string NAME = "Cinnamon 2.3.1";
29+
static const string NAME = "Cinnamon 2.3.2";
3030
static const string STARTPOS = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
3131
static constexpr int BLACK = 0;
3232
static constexpr int WHITE = 1;

src/util/Bitboard.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ Bitboard::Bitboard() {
7272
MASK_BIT_SET[i][j] &= NOTPOW2[i];
7373
}
7474
}
75-
for (int i = 0; i < 64; i++) {
76-
for (int j = 0; j < 64; j++) {
77-
tmpStruct->MASK_BIT_SET_NOBOUND_COUNT_TMP[i][j] = bitCount(tmpStruct->MASK_BIT_SET_NOBOUND_TMP[i][j]);
78-
}
79-
}
8075

8176
popolateAntiDiagonal();
8277
popolateDiagonal();

src/util/Bitboard.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class Bitboard {
8686

8787
typedef struct {
8888
u64 MASK_BIT_SET_NOBOUND_TMP[64][64];
89-
char MASK_BIT_SET_NOBOUND_COUNT_TMP[64][64];
9089
} _Ttmp;
9190

9291
_Ttmp *tmpStruct;

0 commit comments

Comments
 (0)