trianglengin 2.0.3__cp311-cp311-win_amd64.whl → 2.0.4__cp311-cp311-win_amd64.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,8 +1,8 @@
1
1
  trianglengin/__init__.py,sha256=VBYKMivxX19prPkxmSCSJJrjFXDVWkQJ9b5kQ6RzvkI,954
2
2
  trianglengin/game_interface.py,sha256=7zvt61QGmAuagRfNMpRORhX11sy9NqWM9xWstsEawKY,9540
3
3
  trianglengin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- trianglengin/trianglengin_cpp.cp311-win_amd64.pyd,sha256=gJ0sJgIS02aq-740rrjK5loN9E0P7p2PW3ei_caB5OQ,245248
5
- trianglengin/Release/trianglengin_cpp.cp39-win_amd64.pyd,sha256=gJ0sJgIS02aq-740rrjK5loN9E0P7p2PW3ei_caB5OQ,245248
4
+ trianglengin/trianglengin_cpp.cp311-win_amd64.pyd,sha256=0xNQo_VvoUz4LAKsxxk9TeyuH736bvf5QaKb06rxQmg,242688
5
+ trianglengin/Release/trianglengin_cpp.cp39-win_amd64.pyd,sha256=0xNQo_VvoUz4LAKsxxk9TeyuH736bvf5QaKb06rxQmg,242688
6
6
  trianglengin/config/README.md,sha256=zPN8ezwsN5fmH4xCsVSgOZwfyng_TwrCj3MlwEq63Y4,1544
7
7
  trianglengin/config/__init__.py,sha256=sdr4D-pSCYmfXY2jOLEjPra2VewDiaWNwx1bWKp0nf8,168
8
8
  trianglengin/config/display_config.py,sha256=ivZEGTCuUfmiVU6GJpVpEASFh30AAHSH42PIIi6bPZg,1862
@@ -11,7 +11,7 @@ trianglengin/core/__init__.py,sha256=LWZkoJctRGUhd5DZUJlPCS7usdQLZyKYkoyWUWO3L4o
11
11
  trianglengin/cpp/CMakeLists.txt,sha256=vmhTQLRD7LRPbfFlisVVJ9-cCkeM3UMrikIde7TRLWc,1370
12
12
  trianglengin/cpp/bindings.cpp,sha256=okdR2NCdxgP_FTgMjwXNbzcaFdERRrvy7m1eB_5FY8g,8899
13
13
  trianglengin/cpp/config.h,sha256=rZZ6os70igGgA_fp-81fMv9TQMFJb91m6T-KeTOpKAU,742
14
- trianglengin/cpp/game_state.cpp,sha256=6VwhndQVjr2UHBCnTd-TgBVz6YsTnwjmN-1yvQEQZ0E,12692
14
+ trianglengin/cpp/game_state.cpp,sha256=-aHu2S6zlaXvR8boX8uDxTa9s1ZTwYxrug3NldPB1BM,12442
15
15
  trianglengin/cpp/game_state.h,sha256=jR2dmulSr1uE0F0SivyrLf_sSQlgpikeZ44ZX_df-gY,2619
16
16
  trianglengin/cpp/grid_data.cpp,sha256=IVhNc9zJFCSNRUJARDo_E3pPBAdh7pNBzF03_rZ1_QA,7142
17
17
  trianglengin/cpp/grid_data.h,sha256=IhFXZc4ijLrRqUM1nKZ0gQsg-to1VS66wzao4VnPtp4,2531
@@ -51,9 +51,9 @@ trianglengin/ui/visualization/drawing/utils.py,sha256=gtGtt8bgaIvctFA5TEmKqmXNov
51
51
  trianglengin/utils/__init__.py,sha256=pnFOkerF1TAz9oCzkNYBw6N56uENsyOiMZzA0cQ2SrA,185
52
52
  trianglengin/utils/geometry.py,sha256=nrhr5C3MGO-_xXz96w1B0OJNaATLbc_AeZwoB_O6gsI,2128
53
53
  trianglengin/utils/types.py,sha256=N_CjVJISvBP5QG1QYvepgORD0oNpMJlJRCJ9IdgjmWc,241
54
- trianglengin-2.0.3.dist-info/licenses/LICENSE,sha256=DNjSCXzwafRxA5zjyWccoRXZTDMpTNElFpNVKz4NEpY,1098
55
- trianglengin-2.0.3.dist-info/METADATA,sha256=NnpAGX3RPbCDt7pRqKpfH9o9UYhay6ITxB2EF8YuMrU,12316
56
- trianglengin-2.0.3.dist-info/WHEEL,sha256=BqbYhNlPNPMeJZAa49-d9py1A8ao--DtptYt9-jUJDM,101
57
- trianglengin-2.0.3.dist-info/entry_points.txt,sha256=kQEqO_U-MEpMEC0xwOPSucBzQIq2Ny7XwCtFSruZhvY,57
58
- trianglengin-2.0.3.dist-info/top_level.txt,sha256=YsSWmp_2zM23wRc5TRERHpVCgQuVYieYHDTpnwVQC7Y,13
59
- trianglengin-2.0.3.dist-info/RECORD,,
54
+ trianglengin-2.0.4.dist-info/licenses/LICENSE,sha256=DNjSCXzwafRxA5zjyWccoRXZTDMpTNElFpNVKz4NEpY,1098
55
+ trianglengin-2.0.4.dist-info/METADATA,sha256=Mm9gc4krrDA42SvPu0tfWlAMw6OwCwJaM-8bY3rYtIU,12316
56
+ trianglengin-2.0.4.dist-info/WHEEL,sha256=BqbYhNlPNPMeJZAa49-d9py1A8ao--DtptYt9-jUJDM,101
57
+ trianglengin-2.0.4.dist-info/entry_points.txt,sha256=kQEqO_U-MEpMEC0xwOPSucBzQIq2Ny7XwCtFSruZhvY,57
58
+ trianglengin-2.0.4.dist-info/top_level.txt,sha256=YsSWmp_2zM23wRc5TRERHpVCgQuVYieYHDTpnwVQC7Y,13
59
+ trianglengin-2.0.4.dist-info/RECORD,,