trianglengin 2.0.3__cp312-cp312-musllinux_1_2_x86_64.whl → 2.0.4__cp312-cp312-musllinux_1_2_x86_64.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.
@@ -4,7 +4,7 @@
4
4
  #include "shape_logic.h"
5
5
  #include <stdexcept>
6
6
  #include <numeric>
7
- #include <iostream> // <--- Add 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 the reason for immediate game over
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 the reason for game over after calculation
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
- // Add logging for this case too
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
- // Add logging here
271
- std::cerr << "[GameStateCpp::calculate_valid_actions_internal] Step: " << current_step_
272
- << ", Attempts: " << attempts_count
273
- << ", CanPlaceTrue: " << can_place_true_count
274
- << ", ValidActionsFound: " << valid_actions.size()
275
- << std::endl;
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);
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trianglengin
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: High-performance C++/Python engine for a triangle puzzle game.
5
5
  Author-email: "Luis Guilherme P. M." <lgpelin92@gmail.com>
6
6
  License-Expression: MIT
@@ -1,15 +1,21 @@
1
1
  trianglengin.libs/libstdc++-496613c0.so.6.0.32,sha256=AwZhL5WFT99I2Q6vIxXOhW7qddfuOZ1xecxiP9QTVY4,3494361
2
2
  trianglengin.libs/libgcc_s-a3a07607.so.1,sha256=5ptIUeAzZweNZrFehN0_Bb5B0FcJgux7NbAFoU8vwwo,148041
3
+ trianglengin-2.0.4.dist-info/WHEEL,sha256=UyLNHXRBDnd27Yk45xc47r0-UQKuY5fM2-iebdLKea8,112
4
+ trianglengin-2.0.4.dist-info/RECORD,,
5
+ trianglengin-2.0.4.dist-info/top_level.txt,sha256=YsSWmp_2zM23wRc5TRERHpVCgQuVYieYHDTpnwVQC7Y,13
6
+ trianglengin-2.0.4.dist-info/entry_points.txt,sha256=kQEqO_U-MEpMEC0xwOPSucBzQIq2Ny7XwCtFSruZhvY,57
7
+ trianglengin-2.0.4.dist-info/METADATA,sha256=Ep7c5ldlwGwB_JhzXsgAWju0AHq4k5144Z5dzqmmR6Q,12066
8
+ trianglengin-2.0.4.dist-info/licenses/LICENSE,sha256=So3rgoJp-HgoxkclxZLIBC3pmmTwshN4tUO8KiQ6akc,1077
3
9
  trianglengin/game_interface.py,sha256=ijfBH08DU2sHyMH6XZmQbFQZDPGsKlkk3gk3AUt3fmU,9304
4
10
  trianglengin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- trianglengin/trianglengin_cpp.cpython-312-x86_64-linux-musl.so,sha256=n333E_YNFGXnHoxKNI7VIeiwHA1YJeKNxbk4dLYhLGM,302201
11
+ trianglengin/trianglengin_cpp.cpython-312-x86_64-linux-musl.so,sha256=dTBGEuuDIUg83M5mp6A-6eFbgkfHB5kry06BNiHm4Cs,297897
6
12
  trianglengin/__init__.py,sha256=4INnGvOYIjzOyCew7lhX6Irc8_H7QVxWc5jopt9TCZ4,919
7
- trianglengin/trianglengin_cpp.cpython-37m-x86_64-linux-gnu.so,sha256=n333E_YNFGXnHoxKNI7VIeiwHA1YJeKNxbk4dLYhLGM,302201
13
+ trianglengin/trianglengin_cpp.cpython-37m-x86_64-linux-gnu.so,sha256=dTBGEuuDIUg83M5mp6A-6eFbgkfHB5kry06BNiHm4Cs,297897
8
14
  trianglengin/config/README.md,sha256=PKm6HMVMZkA1KB22s2lP-jh5jwB7XIDiFgoShz_xj0s,1506
9
15
  trianglengin/config/env_config.py,sha256=IMjbOrAZxgVzLjod9tmFhv964E30paG4zI1eUS8Nvy8,2359
10
16
  trianglengin/config/display_config.py,sha256=FHY9iKuuk7L5h-xWtDTthHUlvyme4AJeA5kOk-zZJFg,1815
11
17
  trianglengin/config/__init__.py,sha256=wKb-lRhguEAJCxcPHG1qyW-AmUherzMbUfi3SZ6IEao,160
12
- trianglengin/cpp/game_state.cpp,sha256=WRYA_alYDZs2zR7NU1LMnZ9reKF8YvXGzF7KubQU0ys,12333
18
+ trianglengin/cpp/game_state.cpp,sha256=PL_YUf_3S8yOSfFpICr9zuq5Y_9j3gthaQZ4Th5jA5E,12090
13
19
  trianglengin/cpp/structs.h,sha256=v_aL5O5gwXH_qRPGUIkNplr167rgf7gCVlWIJKOLV1U,993
14
20
  trianglengin/cpp/grid_data.cpp,sha256=KH9BbLuhi-_fmKgnT2oPuzHRDo87xFDHiBfpXCwgYsw,6904
15
21
  trianglengin/cpp/grid_logic.h,sha256=O6roOE_U7nbKgAkaMkC8LrEjGDvnL3QiVzOnXunXy9s,781
@@ -53,9 +59,3 @@ trianglengin/ui/visualization/core/__init__.py,sha256=26XCOn_jywwQ0YszGP6rEgFJIq
53
59
  trianglengin/ui/visualization/core/fonts.py,sha256=d9kQqdilPK0pTvXhv2oVJAbVT4pmWfjKxXfEir7Avdg,2016
54
60
  trianglengin/ui/visualization/core/visualizer.py,sha256=gWY4_vZGEzTokl6Z7xMeGvdrpJMl4YdZnfoT4bgBYW4,8860
55
61
  trianglengin/core/__init__.py,sha256=zMo_rn4wzVGzrevzZM4u4rkLwicZQeDqmXbnk9fI008,460
56
- trianglengin-2.0.3.dist-info/WHEEL,sha256=UyLNHXRBDnd27Yk45xc47r0-UQKuY5fM2-iebdLKea8,112
57
- trianglengin-2.0.3.dist-info/RECORD,,
58
- trianglengin-2.0.3.dist-info/top_level.txt,sha256=YsSWmp_2zM23wRc5TRERHpVCgQuVYieYHDTpnwVQC7Y,13
59
- trianglengin-2.0.3.dist-info/entry_points.txt,sha256=kQEqO_U-MEpMEC0xwOPSucBzQIq2Ny7XwCtFSruZhvY,57
60
- trianglengin-2.0.3.dist-info/METADATA,sha256=JQjjqC7xfHqrYAoSZx-07pFzVN4hb1SmyDFPvHG_Lvo,12066
61
- trianglengin-2.0.3.dist-info/licenses/LICENSE,sha256=So3rgoJp-HgoxkclxZLIBC3pmmTwshN4tUO8KiQ6akc,1077