trianglengin 2.0.3__cp310-cp310-macosx_11_0_arm64.whl → 2.0.4__cp310-cp310-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- trianglengin/cpp/game_state.cpp +10 -17
- trianglengin/trianglengin_cpp.cpython-310-darwin.so +0 -0
- {trianglengin-2.0.3.dist-info → trianglengin-2.0.4.dist-info}/METADATA +1 -1
- {trianglengin-2.0.3.dist-info → trianglengin-2.0.4.dist-info}/RECORD +8 -8
- {trianglengin-2.0.3.dist-info → trianglengin-2.0.4.dist-info}/WHEEL +0 -0
- {trianglengin-2.0.3.dist-info → trianglengin-2.0.4.dist-info}/entry_points.txt +0 -0
- {trianglengin-2.0.3.dist-info → trianglengin-2.0.4.dist-info}/licenses/LICENSE +0 -0
- {trianglengin-2.0.3.dist-info → trianglengin-2.0.4.dist-info}/top_level.txt +0 -0
trianglengin/cpp/game_state.cpp
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
#include "shape_logic.h"
|
5
5
|
#include <stdexcept>
|
6
6
|
#include <numeric>
|
7
|
-
#include <iostream> //
|
7
|
+
#include <iostream> // Keep iostream if other debug logs might be added later, or remove if not needed
|
8
8
|
#include <algorithm> // For std::min
|
9
9
|
|
10
10
|
namespace trianglengin::cpp
|
@@ -41,8 +41,7 @@ namespace trianglengin::cpp
|
|
41
41
|
if (!game_over_ && valid_actions_cache_ && valid_actions_cache_->empty())
|
42
42
|
{
|
43
43
|
force_game_over("No valid actions available at start.");
|
44
|
-
// Log
|
45
|
-
std::cerr << "[GameStateCpp::check_initial_state_game_over] Forced game over: No valid actions at start." << std::endl;
|
44
|
+
// REMOVED C++ Log: std::cerr << "[GameStateCpp::check_initial_state_game_over] Forced game over: No valid actions at start." << std::endl;
|
46
45
|
}
|
47
46
|
}
|
48
47
|
|
@@ -218,8 +217,7 @@ namespace trianglengin::cpp
|
|
218
217
|
if (!game_over_ && valid_actions_cache_->empty())
|
219
218
|
{
|
220
219
|
force_game_over("No valid actions available.");
|
221
|
-
// Log
|
222
|
-
std::cerr << "[GameStateCpp::get_valid_actions] Forced game over: No valid actions found after calculation." << std::endl;
|
220
|
+
// REMOVED C++ Log: std::cerr << "[GameStateCpp::get_valid_actions] Forced game over: No valid actions found after calculation." << std::endl;
|
223
221
|
}
|
224
222
|
return *valid_actions_cache_;
|
225
223
|
}
|
@@ -235,8 +233,7 @@ namespace trianglengin::cpp
|
|
235
233
|
if (game_over_)
|
236
234
|
{
|
237
235
|
valid_actions_cache_ = std::set<Action>();
|
238
|
-
//
|
239
|
-
std::cerr << "[GameStateCpp::calculate_valid_actions_internal] Game already over. Returning empty set." << std::endl;
|
236
|
+
// REMOVED C++ Log: std::cerr << "[GameStateCpp::calculate_valid_actions_internal] Game already over. Returning empty set." << std::endl;
|
240
237
|
return;
|
241
238
|
}
|
242
239
|
std::set<Action> valid_actions;
|
@@ -260,19 +257,15 @@ namespace trianglengin::cpp
|
|
260
257
|
valid_actions.insert(encode_action(shape_idx, r, c));
|
261
258
|
can_place_true_count++; // Increment counter
|
262
259
|
}
|
263
|
-
// Optional: Log failed attempts if needed for deep debugging
|
264
|
-
// else {
|
265
|
-
// std::cerr << "[Debug] can_place failed for shape " << shape_idx << " at (" << r << "," << c << ")" << std::endl;
|
266
|
-
// }
|
267
260
|
}
|
268
261
|
}
|
269
262
|
}
|
270
|
-
//
|
271
|
-
std::cerr << "[GameStateCpp::calculate_valid_actions_internal] Step: " << current_step_
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
263
|
+
// REMOVED C++ Log:
|
264
|
+
// std::cerr << "[GameStateCpp::calculate_valid_actions_internal] Step: " << current_step_
|
265
|
+
// << ", Attempts: " << attempts_count
|
266
|
+
// << ", CanPlaceTrue: " << can_place_true_count
|
267
|
+
// << ", ValidActionsFound: " << valid_actions.size()
|
268
|
+
// << std::endl;
|
276
269
|
|
277
270
|
// Use mutable cache
|
278
271
|
valid_actions_cache_ = std::move(valid_actions);
|
Binary file
|
@@ -1,13 +1,13 @@
|
|
1
|
-
trianglengin-2.0.
|
2
|
-
trianglengin-2.0.
|
3
|
-
trianglengin-2.0.
|
4
|
-
trianglengin-2.0.
|
5
|
-
trianglengin-2.0.
|
6
|
-
trianglengin-2.0.
|
1
|
+
trianglengin-2.0.4.dist-info/RECORD,,
|
2
|
+
trianglengin-2.0.4.dist-info/WHEEL,sha256=USOvS8oWQuwLtSORTjhR96TfED51VPjeqyebWZXVp9s,109
|
3
|
+
trianglengin-2.0.4.dist-info/entry_points.txt,sha256=kQEqO_U-MEpMEC0xwOPSucBzQIq2Ny7XwCtFSruZhvY,57
|
4
|
+
trianglengin-2.0.4.dist-info/top_level.txt,sha256=YsSWmp_2zM23wRc5TRERHpVCgQuVYieYHDTpnwVQC7Y,13
|
5
|
+
trianglengin-2.0.4.dist-info/METADATA,sha256=Ep7c5ldlwGwB_JhzXsgAWju0AHq4k5144Z5dzqmmR6Q,12066
|
6
|
+
trianglengin-2.0.4.dist-info/licenses/LICENSE,sha256=So3rgoJp-HgoxkclxZLIBC3pmmTwshN4tUO8KiQ6akc,1077
|
7
7
|
trianglengin/__init__.py,sha256=4INnGvOYIjzOyCew7lhX6Irc8_H7QVxWc5jopt9TCZ4,919
|
8
8
|
trianglengin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
trianglengin/game_interface.py,sha256=ijfBH08DU2sHyMH6XZmQbFQZDPGsKlkk3gk3AUt3fmU,9304
|
10
|
-
trianglengin/trianglengin_cpp.cpython-310-darwin.so,sha256=
|
10
|
+
trianglengin/trianglengin_cpp.cpython-310-darwin.so,sha256=qG6U0-OSN9QVgoGARoB7zRB5-atNgmRaOU-dChoM4wo,233336
|
11
11
|
trianglengin/ui/config.py,sha256=E68Qvbr3dwyhC_Rh_PK-QHWlHOrXFQhAsARZZMoQHNs,1579
|
12
12
|
trianglengin/ui/__init__.py,sha256=AVIFYOWoZTt69NnkX0Ht3dEAPMpxQ6WZ8G9tDvxNXvA,558
|
13
13
|
trianglengin/ui/README.md,sha256=M-5UU-NKG6qYu1riCUkftRZIwE2Jvf-5qOZ1QGWjPSg,1718
|
@@ -51,7 +51,7 @@ trianglengin/cpp/config.h,sha256=9Xd-9wTYmFwEuf-ZjrQa5zlXF58MrLhRKU1ygyG2Nmc,715
|
|
51
51
|
trianglengin/cpp/grid_data.cpp,sha256=KH9BbLuhi-_fmKgnT2oPuzHRDo87xFDHiBfpXCwgYsw,6904
|
52
52
|
trianglengin/cpp/grid_data.h,sha256=KGOtUQQb7HJnU_LyWIWW5g6S2gJ2u3ewY32qXtoPfcs,2453
|
53
53
|
trianglengin/cpp/game_state.h,sha256=MBoAiG617XPtZNGqGPE2PC1pX1dBHuWBGHLJr3iBg6c,2547
|
54
|
-
trianglengin/cpp/game_state.cpp,sha256=
|
54
|
+
trianglengin/cpp/game_state.cpp,sha256=PL_YUf_3S8yOSfFpICr9zuq5Y_9j3gthaQZ4Th5jA5E,12090
|
55
55
|
trianglengin/cpp/structs.h,sha256=v_aL5O5gwXH_qRPGUIkNplr167rgf7gCVlWIJKOLV1U,993
|
56
56
|
trianglengin/cpp/shape_logic.h,sha256=QvjLAPG5y42FetpXXuCcYrWlcwvKGo7csU8Ch-RmdFs,626
|
57
57
|
trianglengin/cpp/bindings.cpp,sha256=B3hfxIF_pBAyVG1QpbBvJT1awy8uJWRJSBNxaNY5_pY,8689
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|