cuju-engine 0.3.0__tar.gz → 0.4.0__tar.gz

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.
Files changed (954) hide show
  1. cuju_engine-0.4.0/.github/workflows/ci.yml +124 -0
  2. cuju_engine-0.4.0/.github/workflows/release.yml +427 -0
  3. cuju_engine-0.4.0/CHANGELOG.md +538 -0
  4. cuju_engine-0.4.0/CITATION.cff +60 -0
  5. cuju_engine-0.4.0/CONTRIBUTING.md +123 -0
  6. cuju_engine-0.4.0/NOTICE +55 -0
  7. cuju_engine-0.4.0/PKG-INFO +184 -0
  8. cuju_engine-0.4.0/README.md +128 -0
  9. cuju_engine-0.4.0/SECURITY.md +42 -0
  10. cuju_engine-0.4.0/apptainer.def +39 -0
  11. cuju_engine-0.4.0/ci/checks/check_links.py +360 -0
  12. cuju_engine-0.4.0/ci/checks/check_wheel.py +191 -0
  13. cuju_engine-0.4.0/ci/checks/compare_builds.py +123 -0
  14. cuju_engine-0.4.0/ci/checks/cpu_only.py +35 -0
  15. cuju_engine-0.4.0/ci/checks/data_checksums.py +21 -0
  16. cuju_engine-0.4.0/ci/install_cuda.sh +30 -0
  17. cuju_engine-0.4.0/ci/make/make_glyph_atlas.py +616 -0
  18. cuju_engine-0.4.0/ci/make/make_render_media.py +260 -0
  19. cuju_engine-0.4.0/ci/make/port_gfootball.py +345 -0
  20. cuju_engine-0.4.0/docs/api.md +241 -0
  21. cuju_engine-0.4.0/docs/exactness.md +186 -0
  22. cuju_engine-0.4.0/docs/getting-started.md +203 -0
  23. cuju_engine-0.4.0/docs/migrating-from-grf.md +247 -0
  24. cuju_engine-0.4.0/docs/observations-rewards-actions.md +230 -0
  25. cuju_engine-0.4.0/docs/performance.md +198 -0
  26. cuju_engine-0.4.0/docs/scenarios.md +166 -0
  27. cuju_engine-0.4.0/examples/README.md +18 -0
  28. cuju_engine-0.4.0/examples/compare_with_grf.py +398 -0
  29. cuju_engine-0.4.0/examples/cuju_quickstart.ipynb +641 -0
  30. cuju_engine-0.4.0/examples/evaluate.py +116 -0
  31. cuju_engine-0.4.0/examples/ppo.py +288 -0
  32. cuju_engine-0.4.0/include/cuju/ai_time.h +387 -0
  33. cuju_engine-0.4.0/include/cuju/animation/animation_data.h +289 -0
  34. cuju_engine-0.4.0/include/cuju/animation/animation_derived.h +160 -0
  35. cuju_engine-0.4.0/include/cuju/animation/apply.h +347 -0
  36. cuju_engine-0.4.0/include/cuju/animation/keyframes.h +187 -0
  37. cuju_engine-0.4.0/include/cuju/animation/skeleton.h +229 -0
  38. cuju_engine-0.4.0/include/cuju/assets/scenario_builder.h +775 -0
  39. cuju_engine-0.4.0/include/cuju/ball.h +338 -0
  40. cuju_engine-0.4.0/include/cuju/batch/agent_setup.h +151 -0
  41. cuju_engine-0.4.0/include/cuju/batch/batch_core.h +790 -0
  42. cuju_engine-0.4.0/include/cuju/batch/batch_environment.h +703 -0
  43. cuju_engine-0.4.0/include/cuju/batch/memory_estimate.h +63 -0
  44. cuju_engine-0.4.0/include/cuju/batch/render_states.h +55 -0
  45. cuju_engine-0.4.0/include/cuju/batch/stacked_state.h +73 -0
  46. cuju_engine-0.4.0/include/cuju/batch/state_difference.h +118 -0
  47. cuju_engine-0.4.0/include/cuju/batch/tables.h +88 -0
  48. cuju_engine-0.4.0/include/cuju/cpu/batch_environment.h +425 -0
  49. cuju_engine-0.4.0/include/cuju/cpu/job_thread.h +110 -0
  50. cuju_engine-0.4.0/include/cuju/cpu/placement.h +198 -0
  51. cuju_engine-0.4.0/include/cuju/cpu/processors.h +137 -0
  52. cuju_engine-0.4.0/include/cuju/engine/engine_info.h +93 -0
  53. cuju_engine-0.4.0/include/cuju/engine/game_engine.h +737 -0
  54. cuju_engine-0.4.0/include/cuju/file_path.h +21 -0
  55. cuju_engine-0.4.0/include/cuju/floating_point.h +54 -0
  56. cuju_engine-0.4.0/include/cuju/game_definitions.h +33 -0
  57. cuju_engine-0.4.0/include/cuju/gpu/batch_environment.cuh +228 -0
  58. cuju_engine-0.4.0/include/cuju/gpu/device_data.h +121 -0
  59. cuju_engine-0.4.0/include/cuju/host_device.h +41 -0
  60. cuju_engine-0.4.0/include/cuju/inline_vector.h +86 -0
  61. cuju_engine-0.4.0/include/cuju/math_utilities.h +38 -0
  62. cuju_engine-0.4.0/include/cuju/nvtx.h +38 -0
  63. cuju_engine-0.4.0/include/cuju/possession.h +119 -0
  64. cuju_engine-0.4.0/include/cuju/profiling.h +67 -0
  65. cuju_engine-0.4.0/include/cuju/quaternion.h +277 -0
  66. cuju_engine-0.4.0/include/cuju/real_to_string.h +47 -0
  67. cuju_engine-0.4.0/include/cuju/render/extract_render_state.h +282 -0
  68. cuju_engine-0.4.0/include/cuju/render/render_state.h +131 -0
  69. cuju_engine-0.4.0/include/cuju/rng.h +112 -0
  70. cuju_engine-0.4.0/include/cuju/simulation/access.h +58 -0
  71. cuju_engine-0.4.0/include/cuju/simulation/ai_controller.h +2492 -0
  72. cuju_engine-0.4.0/include/cuju/simulation/ai_functions.h +185 -0
  73. cuju_engine-0.4.0/include/cuju/simulation/ball_touch.h +135 -0
  74. cuju_engine-0.4.0/include/cuju/simulation/camera.h +162 -0
  75. cuju_engine-0.4.0/include/cuju/simulation/collisions.h +611 -0
  76. cuju_engine-0.4.0/include/cuju/simulation/containers.h +22 -0
  77. cuju_engine-0.4.0/include/cuju/simulation/enumerations.h +62 -0
  78. cuju_engine-0.4.0/include/cuju/simulation/environment.h +593 -0
  79. cuju_engine-0.4.0/include/cuju/simulation/geometry_offsets.h +194 -0
  80. cuju_engine-0.4.0/include/cuju/simulation/human_controller.h +115 -0
  81. cuju_engine-0.4.0/include/cuju/simulation/humanoid.h +395 -0
  82. cuju_engine-0.4.0/include/cuju/simulation/humanoid_process.h +676 -0
  83. cuju_engine-0.4.0/include/cuju/simulation/match_process.h +378 -0
  84. cuju_engine-0.4.0/include/cuju/simulation/observation_encoding.h +163 -0
  85. cuju_engine-0.4.0/include/cuju/simulation/officials.h +388 -0
  86. cuju_engine-0.4.0/include/cuju/simulation/player_controller.h +241 -0
  87. cuju_engine-0.4.0/include/cuju/simulation/player_possession.h +121 -0
  88. cuju_engine-0.4.0/include/cuju/simulation/referee.h +342 -0
  89. cuju_engine-0.4.0/include/cuju/simulation/render_mode.h +180 -0
  90. cuju_engine-0.4.0/include/cuju/simulation/reset.h +717 -0
  91. cuju_engine-0.4.0/include/cuju/simulation/select_animation.h +2753 -0
  92. cuju_engine-0.4.0/include/cuju/simulation/state_io.h +87 -0
  93. cuju_engine-0.4.0/include/cuju/simulation/static_data.h +100 -0
  94. cuju_engine-0.4.0/include/cuju/simulation/team_ai.h +520 -0
  95. cuju_engine-0.4.0/include/cuju/simulation/team_process.h +315 -0
  96. cuju_engine-0.4.0/include/cuju/simulation/team_select.h +196 -0
  97. cuju_engine-0.4.0/include/cuju/simulation/touch.h +394 -0
  98. cuju_engine-0.4.0/include/cuju/simulation/world.h +235 -0
  99. cuju_engine-0.4.0/include/cuju/span.h +25 -0
  100. cuju_engine-0.4.0/include/cuju/state/archive.h +180 -0
  101. cuju_engine-0.4.0/include/cuju/state/environment_state.h +864 -0
  102. cuju_engine-0.4.0/include/cuju/vector3.h +224 -0
  103. cuju_engine-0.4.0/include/cuju/warp.h +222 -0
  104. cuju_engine-0.4.0/include/cuju/work_area.h +87 -0
  105. cuju_engine-0.4.0/include/cuju/x86.h +27 -0
  106. cuju_engine-0.4.0/packages/cuju-gfootball/README.md +78 -0
  107. cuju_engine-0.4.0/packages/cuju-gfootball/pyproject.toml +50 -0
  108. cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju/gfootball_alias/__init__.py +28 -0
  109. cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju/gfootball_alias/__main__.py +10 -0
  110. cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju/gfootball_alias/_startup.py +224 -0
  111. cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju/gfootball_alias/_version.py +5 -0
  112. cuju_engine-0.4.0/packages/cuju-gfootball/src/cuju_gfootball.pth +1 -0
  113. cuju_engine-0.4.0/packaging/cuju-grf-media/.gitignore +7 -0
  114. cuju_engine-0.4.0/packaging/cuju-grf-media/NOTICE +31 -0
  115. cuju_engine-0.4.0/packaging/cuju-grf-media/README.md +18 -0
  116. cuju_engine-0.4.0/packaging/cuju-grf-media/pyproject.toml +39 -0
  117. cuju_engine-0.4.0/packaging/cuju-grf-media/sources.txt +113 -0
  118. cuju_engine-0.4.0/packaging/cuju-grf-media/src/cuju/grf_media/__init__.py +9 -0
  119. cuju_engine-0.4.0/pyproject.toml +143 -0
  120. cuju_engine-0.4.0/python/cuju/__init__.py +63 -0
  121. cuju_engine-0.4.0/python/cuju/__main__.py +253 -0
  122. cuju_engine-0.4.0/python/cuju/_action_log.py +277 -0
  123. cuju_engine-0.4.0/python/cuju/_assets.py +24 -0
  124. cuju_engine-0.4.0/python/cuju/_batch/__init__.py +21 -0
  125. cuju_engine-0.4.0/python/cuju/_batch/allocator.py +34 -0
  126. cuju_engine-0.4.0/python/cuju/_batch/assets.py +37 -0
  127. cuju_engine-0.4.0/python/cuju/_batch/environment.py +1349 -0
  128. cuju_engine-0.4.0/python/cuju/_batch/frame_stack.py +89 -0
  129. cuju_engine-0.4.0/python/cuju/_batch/library.py +180 -0
  130. cuju_engine-0.4.0/python/cuju/_batch/log.py +86 -0
  131. cuju_engine-0.4.0/python/cuju/_batch/memory.py +47 -0
  132. cuju_engine-0.4.0/python/cuju/_batch/operators.py +45 -0
  133. cuju_engine-0.4.0/python/cuju/_batch/pinned.py +28 -0
  134. cuju_engine-0.4.0/python/cuju/_batch/pixels.py +172 -0
  135. cuju_engine-0.4.0/python/cuju/_batch/state.py +65 -0
  136. cuju_engine-0.4.0/python/cuju/_checksums.py +42 -0
  137. cuju_engine-0.4.0/python/cuju/_cli_contract.py +228 -0
  138. cuju_engine-0.4.0/python/cuju/_cli_parsers.py +162 -0
  139. cuju_engine-0.4.0/python/cuju/_completion.py +291 -0
  140. cuju_engine-0.4.0/python/cuju/_config.py +157 -0
  141. cuju_engine-0.4.0/python/cuju/_dump_command.py +61 -0
  142. cuju_engine-0.4.0/python/cuju/_environment.py +243 -0
  143. cuju_engine-0.4.0/python/cuju/_grf_config.py +250 -0
  144. cuju_engine-0.4.0/python/cuju/_kaggle.py +268 -0
  145. cuju_engine-0.4.0/python/cuju/_library_path.py +113 -0
  146. cuju_engine-0.4.0/python/cuju/_media.py +83 -0
  147. cuju_engine-0.4.0/python/cuju/_pixels.py +229 -0
  148. cuju_engine-0.4.0/python/cuju/_players.py +191 -0
  149. cuju_engine-0.4.0/python/cuju/_plugins.py +45 -0
  150. cuju_engine-0.4.0/python/cuju/_python_players.py +179 -0
  151. cuju_engine-0.4.0/python/cuju/_raw.py +68 -0
  152. cuju_engine-0.4.0/python/cuju/_replay_command.py +75 -0
  153. cuju_engine-0.4.0/python/cuju/_replay_player.py +32 -0
  154. cuju_engine-0.4.0/python/cuju/_replays.py +321 -0
  155. cuju_engine-0.4.0/python/cuju/_script_helpers.py +74 -0
  156. cuju_engine-0.4.0/python/cuju/_state.py +149 -0
  157. cuju_engine-0.4.0/python/cuju/_version.py +4 -0
  158. cuju_engine-0.4.0/python/cuju/_wrappers.py +237 -0
  159. cuju_engine-0.4.0/python/cuju/check.py +607 -0
  160. cuju_engine-0.4.0/python/cuju/dumps.py +879 -0
  161. cuju_engine-0.4.0/python/cuju/engine_status.py +92 -0
  162. cuju_engine-0.4.0/python/cuju/env.py +912 -0
  163. cuju_engine-0.4.0/python/cuju/errors.py +76 -0
  164. cuju_engine-0.4.0/python/cuju/gfootball/__init__.py +60 -0
  165. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/core.py +361 -0
  166. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/envs/registration.py +284 -0
  167. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/error.py +230 -0
  168. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/logger.py +56 -0
  169. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/__init__.py +30 -0
  170. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/box.py +171 -0
  171. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/dict.py +162 -0
  172. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/discrete.py +41 -0
  173. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_binary.py +61 -0
  174. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_discrete.py +77 -0
  175. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/space.py +94 -0
  176. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/tuple.py +96 -0
  177. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/spaces/utils.py +228 -0
  178. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/__init__.py +13 -0
  179. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/closer.py +72 -0
  180. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/colorize.py +36 -0
  181. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/ezpickle.py +37 -0
  182. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/json_utils.py +27 -0
  183. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/utils/seeding.py +101 -0
  184. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/version.py +5 -0
  185. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/wrappers/order_enforcing.py +20 -0
  186. cuju_engine-0.4.0/python/cuju/gfootball/_gym/_vendored/wrappers/time_limit.py +31 -0
  187. cuju_engine-0.4.0/python/cuju/gfootball/dump_to_txt.py +49 -0
  188. cuju_engine-0.4.0/python/cuju/gfootball/dump_to_video.py +33 -0
  189. cuju_engine-0.4.0/python/cuju/gfootball/env/__init__.py +271 -0
  190. cuju_engine-0.4.0/python/cuju/gfootball/env/config.py +163 -0
  191. cuju_engine-0.4.0/python/cuju/gfootball/env/constants.py +33 -0
  192. cuju_engine-0.4.0/python/cuju/gfootball/env/controller_base.py +114 -0
  193. cuju_engine-0.4.0/python/cuju/gfootball/env/event_queue.py +54 -0
  194. cuju_engine-0.4.0/python/cuju/gfootball/env/football_action_set.py +220 -0
  195. cuju_engine-0.4.0/python/cuju/gfootball/env/football_action_set_test.py +76 -0
  196. cuju_engine-0.4.0/python/cuju/gfootball/env/football_env.py +225 -0
  197. cuju_engine-0.4.0/python/cuju/gfootball/env/football_env_core.py +447 -0
  198. cuju_engine-0.4.0/python/cuju/gfootball/env/football_env_test.py +692 -0
  199. cuju_engine-0.4.0/python/cuju/gfootball/env/gym_test.py +47 -0
  200. cuju_engine-0.4.0/python/cuju/gfootball/env/observation_preprocessing.py +94 -0
  201. cuju_engine-0.4.0/python/cuju/gfootball/env/observation_processor.py +526 -0
  202. cuju_engine-0.4.0/python/cuju/gfootball/env/observation_rotation.py +163 -0
  203. cuju_engine-0.4.0/python/cuju/gfootball/env/observation_rotation_test.py +84 -0
  204. cuju_engine-0.4.0/python/cuju/gfootball/env/player_base.py +46 -0
  205. cuju_engine-0.4.0/python/cuju/gfootball/env/players/__init__.py +16 -0
  206. cuju_engine-0.4.0/python/cuju/gfootball/env/players/agent.py +39 -0
  207. cuju_engine-0.4.0/python/cuju/gfootball/env/players/bot.py +217 -0
  208. cuju_engine-0.4.0/python/cuju/gfootball/env/players/gamepad.py +81 -0
  209. cuju_engine-0.4.0/python/cuju/gfootball/env/players/keyboard.py +72 -0
  210. cuju_engine-0.4.0/python/cuju/gfootball/env/players/lazy.py +31 -0
  211. cuju_engine-0.4.0/python/cuju/gfootball/env/players/ppo2_cnn.py +119 -0
  212. cuju_engine-0.4.0/python/cuju/gfootball/env/players/replay.py +40 -0
  213. cuju_engine-0.4.0/python/cuju/gfootball/env/remote_football_env.py +189 -0
  214. cuju_engine-0.4.0/python/cuju/gfootball/env/scenario_builder.py +125 -0
  215. cuju_engine-0.4.0/python/cuju/gfootball/env/script_helpers.py +130 -0
  216. cuju_engine-0.4.0/python/cuju/gfootball/env/script_helpers_test.py +107 -0
  217. cuju_engine-0.4.0/python/cuju/gfootball/env/wrappers.py +440 -0
  218. cuju_engine-0.4.0/python/cuju/gfootball/env/wrappers_test.py +150 -0
  219. cuju_engine-0.4.0/python/cuju/gfootball/eval_server/__init__.py +17 -0
  220. cuju_engine-0.4.0/python/cuju/gfootball/eval_server/config.py +30 -0
  221. cuju_engine-0.4.0/python/cuju/gfootball/eval_server/example_client.py +107 -0
  222. cuju_engine-0.4.0/python/cuju/gfootball/eval_server/proto/game_server_pb2.py +501 -0
  223. cuju_engine-0.4.0/python/cuju/gfootball/eval_server/proto/game_server_pb2_grpc.py +113 -0
  224. cuju_engine-0.4.0/python/cuju/gfootball/eval_server/proto/master_pb2.py +184 -0
  225. cuju_engine-0.4.0/python/cuju/gfootball/eval_server/proto/master_pb2_grpc.py +62 -0
  226. cuju_engine-0.4.0/python/cuju/gfootball/eval_server/utils.py +52 -0
  227. cuju_engine-0.4.0/python/cuju/gfootball/examples/__init__.py +16 -0
  228. cuju_engine-0.4.0/python/cuju/gfootball/examples/models.py +66 -0
  229. cuju_engine-0.4.0/python/cuju/gfootball/examples/run_multiagent_rllib.py +140 -0
  230. cuju_engine-0.4.0/python/cuju/gfootball/examples/run_ppo2.py +123 -0
  231. cuju_engine-0.4.0/python/cuju/gfootball/play_game.py +73 -0
  232. cuju_engine-0.4.0/python/cuju/gfootball/replay.py +43 -0
  233. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_competition.py +59 -0
  234. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_easy_stochastic.py +57 -0
  235. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_hard_stochastic.py +57 -0
  236. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_kaggle.py +60 -0
  237. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/11_vs_11_stochastic.py +57 -0
  238. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/1_vs_1_easy.py +39 -0
  239. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/5_vs_5.py +46 -0
  240. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/__init__.py +31 -0
  241. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_3_vs_1_with_keeper.py +42 -0
  242. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_corner.py +59 -0
  243. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_counterattack_easy.py +59 -0
  244. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_counterattack_hard.py +59 -0
  245. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_empty_goal.py +39 -0
  246. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_empty_goal_close.py +39 -0
  247. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_pass_and_shoot_with_keeper.py +41 -0
  248. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_run_pass_and_shoot_with_keeper.py +41 -0
  249. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_run_to_score.py +44 -0
  250. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_run_to_score_with_keeper.py +44 -0
  251. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/academy_single_goal_versus_lazy.py +63 -0
  252. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/test_example_multiagent.py +42 -0
  253. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_deterministic.py +58 -0
  254. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_easy_deterministic.py +58 -0
  255. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_hard_deterministic.py +58 -0
  256. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_deterministic.py +58 -0
  257. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_stochastic.py +58 -0
  258. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_deterministic.py +47 -0
  259. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_stochastic.py +47 -0
  260. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/__init__.py +31 -0
  261. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/corner_test.py +38 -0
  262. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/goal_test.py +35 -0
  263. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/keeper_test.py +38 -0
  264. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/kickoff_for_goal_loosing_team_test.py +34 -0
  265. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/multiagent_wrapper.py +60 -0
  266. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/offside_test.py +39 -0
  267. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/penalty.py +34 -0
  268. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/second_half.py +33 -0
  269. cuju_engine-0.4.0/python/cuju/gfootball/scenarios/tests/symmetric.py +53 -0
  270. cuju_engine-0.4.0/python/cuju/gfootball_engine/__init__.py +27 -0
  271. cuju_engine-0.4.0/python/cuju/gfootball_engine/_errors.py +16 -0
  272. cuju_engine-0.4.0/python/cuju/gfootball_engine/_gameplayfootball.py +1577 -0
  273. cuju_engine-0.4.0/python/cuju/gfootball_engine/_native.py +179 -0
  274. cuju_engine-0.4.0/python/cuju/gfootball_engine/_pickle_names.py +98 -0
  275. cuju_engine-0.4.0/python/cuju/gfootball_engine/_render_hooks.py +134 -0
  276. cuju_engine-0.4.0/python/cuju/scenarios.py +534 -0
  277. cuju_engine-0.4.0/src/cuju_cpu.cpp +31 -0
  278. cuju_engine-0.4.0/src/cuju_cuda.cu +12 -0
  279. cuju_engine-0.4.0/src/engine_api.h +451 -0
  280. cuju_engine-0.4.0/src/environment_api.h +495 -0
  281. cuju_engine-0.4.0/src/environment_state.cpp +101 -0
  282. cuju_engine-0.4.0/src/render/assets/ase.cpp +365 -0
  283. cuju_engine-0.4.0/src/render/assets/assets.h +123 -0
  284. cuju_engine-0.4.0/src/render/assets/geometry.cpp +182 -0
  285. cuju_engine-0.4.0/src/render/assets/object.cpp +201 -0
  286. cuju_engine-0.4.0/src/render/assets/surface.cpp +55 -0
  287. cuju_engine-0.4.0/src/render/assets/text.cpp +106 -0
  288. cuju_engine-0.4.0/src/render/assets/text.h +35 -0
  289. cuju_engine-0.4.0/src/render/fpenv.cpp +174 -0
  290. cuju_engine-0.4.0/src/render/fpenv.h +195 -0
  291. cuju_engine-0.4.0/src/render/frame.cpp +507 -0
  292. cuju_engine-0.4.0/src/render/frame.h +140 -0
  293. cuju_engine-0.4.0/src/render/gl/context.cpp +872 -0
  294. cuju_engine-0.4.0/src/render/gl/context.h +260 -0
  295. cuju_engine-0.4.0/src/render/gl/draw.cpp +542 -0
  296. cuju_engine-0.4.0/src/render/gl/fragment.cpp +408 -0
  297. cuju_engine-0.4.0/src/render/gl/fragment.h +102 -0
  298. cuju_engine-0.4.0/src/render/gl/mip_cache.cpp +92 -0
  299. cuju_engine-0.4.0/src/render/gl/mip_cache.h +46 -0
  300. cuju_engine-0.4.0/src/render/gl/pipeline.h +210 -0
  301. cuju_engine-0.4.0/src/render/gl/program.cpp +115 -0
  302. cuju_engine-0.4.0/src/render/gl/program.h +156 -0
  303. cuju_engine-0.4.0/src/render/gl/scene.cpp +838 -0
  304. cuju_engine-0.4.0/src/render/gl/setup.cpp +376 -0
  305. cuju_engine-0.4.0/src/render/lanes.h +451 -0
  306. cuju_engine-0.4.0/src/render/mipmap.cpp +272 -0
  307. cuju_engine-0.4.0/src/render/mipmap.h +24 -0
  308. cuju_engine-0.4.0/src/render/numerics.h +104 -0
  309. cuju_engine-0.4.0/src/render/overlay2d/atlas.cpp +260 -0
  310. cuju_engine-0.4.0/src/render/overlay2d/atlas.h +93 -0
  311. cuju_engine-0.4.0/src/render/overlay2d/overlay.cpp +287 -0
  312. cuju_engine-0.4.0/src/render/overlay2d/overlay.h +116 -0
  313. cuju_engine-0.4.0/src/render/overlay2d/rotozoom.cpp +119 -0
  314. cuju_engine-0.4.0/src/render/overlay2d/surface.cpp +92 -0
  315. cuju_engine-0.4.0/src/render/overlay2d/surface.h +52 -0
  316. cuju_engine-0.4.0/src/render/pitch/bmp.cpp +114 -0
  317. cuju_engine-0.4.0/src/render/pitch/bmp.h +29 -0
  318. cuju_engine-0.4.0/src/render/pitch/perlin.cpp +107 -0
  319. cuju_engine-0.4.0/src/render/pitch/perlin.h +48 -0
  320. cuju_engine-0.4.0/src/render/pitch/pitch.cpp +654 -0
  321. cuju_engine-0.4.0/src/render/pitch/pitch.h +56 -0
  322. cuju_engine-0.4.0/src/render/pixels.cpp +541 -0
  323. cuju_engine-0.4.0/src/render/pixels.h +69 -0
  324. cuju_engine-0.4.0/src/render/polynomials.h +110 -0
  325. cuju_engine-0.4.0/src/render/render_api.cpp +333 -0
  326. cuju_engine-0.4.0/src/render/render_api.h +75 -0
  327. cuju_engine-0.4.0/src/render/sampler.cpp +916 -0
  328. cuju_engine-0.4.0/src/render/sampler.h +50 -0
  329. cuju_engine-0.4.0/src/render/scene/gl_stream.cpp +530 -0
  330. cuju_engine-0.4.0/src/render/scene/gl_stream.h +216 -0
  331. cuju_engine-0.4.0/src/render/scene/grf_math.cpp +136 -0
  332. cuju_engine-0.4.0/src/render/scene/grf_math.h +262 -0
  333. cuju_engine-0.4.0/src/render/scene/gui.cpp +377 -0
  334. cuju_engine-0.4.0/src/render/scene/gui.h +154 -0
  335. cuju_engine-0.4.0/src/render/scene/match.cpp +605 -0
  336. cuju_engine-0.4.0/src/render/scene/match.h +180 -0
  337. cuju_engine-0.4.0/src/render/scene/netting.cpp +116 -0
  338. cuju_engine-0.4.0/src/render/scene/netting.h +42 -0
  339. cuju_engine-0.4.0/src/render/scene/random.h +53 -0
  340. cuju_engine-0.4.0/src/render/scene/renderer3d.cpp +865 -0
  341. cuju_engine-0.4.0/src/render/scene/renderer3d.h +237 -0
  342. cuju_engine-0.4.0/src/render/scene/scene.cpp +828 -0
  343. cuju_engine-0.4.0/src/render/scene/scene.h +247 -0
  344. cuju_engine-0.4.0/src/render/scene/skinning.cpp +313 -0
  345. cuju_engine-0.4.0/src/render/scene/skinning.h +71 -0
  346. cuju_engine-0.4.0/src/render/scene/vertex_colors.cpp +80 -0
  347. cuju_engine-0.4.0/src/render/scene/vertex_colors.h +20 -0
  348. cuju_engine-0.4.0/src/render/sha256.cpp +100 -0
  349. cuju_engine-0.4.0/src/render/sha256.h +37 -0
  350. cuju_engine-0.4.0/src/render/shaders/ambient.cpp +287 -0
  351. cuju_engine-0.4.0/src/render/shaders/ambient.h +43 -0
  352. cuju_engine-0.4.0/src/render/shaders/lighting.cpp +283 -0
  353. cuju_engine-0.4.0/src/render/shaders/lighting.h +44 -0
  354. cuju_engine-0.4.0/src/render/shaders/overlay.cpp +90 -0
  355. cuju_engine-0.4.0/src/render/shaders/overlay.h +30 -0
  356. cuju_engine-0.4.0/src/render/shaders/postprocess.cpp +218 -0
  357. cuju_engine-0.4.0/src/render/shaders/postprocess.h +37 -0
  358. cuju_engine-0.4.0/src/render/shaders/quad_vs.h +38 -0
  359. cuju_engine-0.4.0/src/render/shaders/simple.cpp +270 -0
  360. cuju_engine-0.4.0/src/render/shaders/simple.h +34 -0
  361. cuju_engine-0.4.0/src/render/shaders/zphase.cpp +66 -0
  362. cuju_engine-0.4.0/src/render/shaders/zphase.h +28 -0
  363. cuju_engine-0.4.0/src/render/srgb.h +45 -0
  364. cuju_engine-0.4.0/src/render/texture.h +81 -0
  365. cuju_engine-0.4.0/src/scenario_api.h +106 -0
  366. cuju_engine-0.4.0/src/state_api.h +100 -0
  367. cuju_engine-0.4.0/tests/batch/test_action_log.py +117 -0
  368. cuju_engine-0.4.0/tests/batch/test_async.py +148 -0
  369. cuju_engine-0.4.0/tests/batch/test_compile.py +100 -0
  370. cuju_engine-0.4.0/tests/batch/test_difficulty.py +34 -0
  371. cuju_engine-0.4.0/tests/batch/test_errors.py +93 -0
  372. cuju_engine-0.4.0/tests/batch/test_first_index.py +51 -0
  373. cuju_engine-0.4.0/tests/batch/test_fork.py +99 -0
  374. cuju_engine-0.4.0/tests/batch/test_masked_reset.py +116 -0
  375. cuju_engine-0.4.0/tests/batch/test_observers.py +414 -0
  376. cuju_engine-0.4.0/tests/batch/test_public_api.py +357 -0
  377. cuju_engine-0.4.0/tests/batch/test_referee_animations.py +57 -0
  378. cuju_engine-0.4.0/tests/batch/test_reset_seeds.py +85 -0
  379. cuju_engine-0.4.0/tests/batch/test_roles.py +83 -0
  380. cuju_engine-0.4.0/tests/batch/test_shapes.py +51 -0
  381. cuju_engine-0.4.0/tests/cli/test_check.py +219 -0
  382. cuju_engine-0.4.0/tests/cli/test_cli.py +623 -0
  383. cuju_engine-0.4.0/tests/cli/test_cli_conformance.py +410 -0
  384. cuju_engine-0.4.0/tests/cli/test_machine_config.py +181 -0
  385. cuju_engine-0.4.0/tests/conftest.py +105 -0
  386. cuju_engine-0.4.0/tests/devices/test_allocator.py +65 -0
  387. cuju_engine-0.4.0/tests/devices/test_backends.py +97 -0
  388. cuju_engine-0.4.0/tests/devices/test_device_checks.py +142 -0
  389. cuju_engine-0.4.0/tests/devices/test_digests.py +48 -0
  390. cuju_engine-0.4.0/tests/devices/test_long.py +59 -0
  391. cuju_engine-0.4.0/tests/devices/test_memory.py +124 -0
  392. cuju_engine-0.4.0/tests/devices/test_nvtx.py +37 -0
  393. cuju_engine-0.4.0/tests/devices/test_processors.py +76 -0
  394. cuju_engine-0.4.0/tests/grf/test_compare_with_grf.py +178 -0
  395. cuju_engine-0.4.0/tests/grf/test_dump_replay.py +120 -0
  396. cuju_engine-0.4.0/tests/grf/test_dumps.py +403 -0
  397. cuju_engine-0.4.0/tests/grf/test_engine_module.py +450 -0
  398. cuju_engine-0.4.0/tests/grf/test_env.py +346 -0
  399. cuju_engine-0.4.0/tests/grf/test_gfootball.py +141 -0
  400. cuju_engine-0.4.0/tests/grf/test_gfootball_alias.py +644 -0
  401. cuju_engine-0.4.0/tests/grf/test_gfootball_port.py +287 -0
  402. cuju_engine-0.4.0/tests/grf/test_grf_config.py +108 -0
  403. cuju_engine-0.4.0/tests/grf/test_grf_suite.py +126 -0
  404. cuju_engine-0.4.0/tests/grf/test_kaggle.py +178 -0
  405. cuju_engine-0.4.0/tests/grf/test_players.py +272 -0
  406. cuju_engine-0.4.0/tests/grf/test_python_players.py +225 -0
  407. cuju_engine-0.4.0/tests/grf/test_wrappers.py +260 -0
  408. cuju_engine-0.4.0/tests/grf/test_write_dump.py +104 -0
  409. cuju_engine-0.4.0/tests/packaging/test_bundle_cache.py +156 -0
  410. cuju_engine-0.4.0/tests/packaging/test_data_checksums.py +36 -0
  411. cuju_engine-0.4.0/tests/packaging/test_distribution.py +242 -0
  412. cuju_engine-0.4.0/tests/packaging/test_family_surface.py +159 -0
  413. cuju_engine-0.4.0/tests/packaging/test_import.py +147 -0
  414. cuju_engine-0.4.0/tests/packaging/test_plugins.py +270 -0
  415. cuju_engine-0.4.0/tests/packaging/test_version.py +55 -0
  416. cuju_engine-0.4.0/tests/render/test_engine_render_mode.py +211 -0
  417. cuju_engine-0.4.0/tests/render/test_render_frames.py +904 -0
  418. cuju_engine-0.4.0/tests/render/test_render_media.py +379 -0
  419. cuju_engine-0.4.0/tests/states/test_stacked_state.py +152 -0
  420. cuju_engine-0.4.0/tests/states/test_state.py +115 -0
  421. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/bug.yml +0 -27
  422. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/config.yml +0 -8
  423. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/difference.yml +0 -58
  424. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/grf-feature.yml +0 -20
  425. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/install.yml +0 -30
  426. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/performance.yml +0 -22
  427. cuju_engine-0.3.0/.github/pull_request_template.md +0 -6
  428. cuju_engine-0.3.0/.github/workflows/ci.yml +0 -124
  429. cuju_engine-0.3.0/.github/workflows/release.yml +0 -492
  430. cuju_engine-0.3.0/CHANGELOG.md +0 -437
  431. cuju_engine-0.3.0/CITATION.cff +0 -60
  432. cuju_engine-0.3.0/CODE_OF_CONDUCT.md +0 -119
  433. cuju_engine-0.3.0/CONTRIBUTING.md +0 -107
  434. cuju_engine-0.3.0/LICENSES/CC-BY-4.0.txt +0 -396
  435. cuju_engine-0.3.0/NOTICE +0 -56
  436. cuju_engine-0.3.0/PKG-INFO +0 -325
  437. cuju_engine-0.3.0/README.md +0 -270
  438. cuju_engine-0.3.0/SECURITY.md +0 -46
  439. cuju_engine-0.3.0/apptainer.def +0 -39
  440. cuju_engine-0.3.0/ci/check_links.py +0 -368
  441. cuju_engine-0.3.0/ci/check_wheel.py +0 -204
  442. cuju_engine-0.3.0/ci/compare_builds.py +0 -129
  443. cuju_engine-0.3.0/ci/cpu_only.py +0 -43
  444. cuju_engine-0.3.0/ci/data_checksums.py +0 -27
  445. cuju_engine-0.3.0/ci/install_cuda.sh +0 -33
  446. cuju_engine-0.3.0/ci/make_glyph_atlas.py +0 -651
  447. cuju_engine-0.3.0/ci/make_render_media.py +0 -285
  448. cuju_engine-0.3.0/ci/port_gfootball.py +0 -381
  449. cuju_engine-0.3.0/docs/api.md +0 -631
  450. cuju_engine-0.3.0/docs/backends.md +0 -409
  451. cuju_engine-0.3.0/docs/concepts.md +0 -145
  452. cuju_engine-0.3.0/docs/custom-scenarios.md +0 -163
  453. cuju_engine-0.3.0/docs/differences-from-grf.md +0 -299
  454. cuju_engine-0.3.0/docs/episodes-and-seeds.md +0 -254
  455. cuju_engine-0.3.0/docs/exactness.md +0 -285
  456. cuju_engine-0.3.0/docs/faq.md +0 -245
  457. cuju_engine-0.3.0/docs/index.md +0 -152
  458. cuju_engine-0.3.0/docs/installation.md +0 -550
  459. cuju_engine-0.3.0/docs/migrating-from-grf.md +0 -765
  460. cuju_engine-0.3.0/docs/observations.md +0 -382
  461. cuju_engine-0.3.0/docs/performance.md +0 -295
  462. cuju_engine-0.3.0/docs/recipes.md +0 -435
  463. cuju_engine-0.3.0/docs/rendering.md +0 -714
  464. cuju_engine-0.3.0/docs/rewards-and-actions.md +0 -201
  465. cuju_engine-0.3.0/docs/scenarios.md +0 -184
  466. cuju_engine-0.3.0/docs/states.md +0 -256
  467. cuju_engine-0.3.0/examples/README.md +0 -65
  468. cuju_engine-0.3.0/examples/benchmark.py +0 -110
  469. cuju_engine-0.3.0/examples/compare_with_grf.py +0 -390
  470. cuju_engine-0.3.0/examples/cuda_graph_step.py +0 -59
  471. cuju_engine-0.3.0/examples/cuju_quickstart.ipynb +0 -633
  472. cuju_engine-0.3.0/examples/dumps.py +0 -92
  473. cuju_engine-0.3.0/examples/evaluate.py +0 -116
  474. cuju_engine-0.3.0/examples/kaggle_agent.py +0 -73
  475. cuju_engine-0.3.0/examples/mixed_batch.py +0 -57
  476. cuju_engine-0.3.0/examples/multi_gpu.py +0 -91
  477. cuju_engine-0.3.0/examples/ppo.py +0 -285
  478. cuju_engine-0.3.0/examples/random_rollout.py +0 -57
  479. cuju_engine-0.3.0/examples/self_play.py +0 -131
  480. cuju_engine-0.3.0/examples/states.py +0 -138
  481. cuju_engine-0.3.0/include/cuju/ai_time.h +0 -409
  482. cuju_engine-0.3.0/include/cuju/animation/animation_data.h +0 -307
  483. cuju_engine-0.3.0/include/cuju/animation/animation_derived.h +0 -168
  484. cuju_engine-0.3.0/include/cuju/animation/apply.h +0 -367
  485. cuju_engine-0.3.0/include/cuju/animation/keyframes.h +0 -194
  486. cuju_engine-0.3.0/include/cuju/animation/skeleton.h +0 -238
  487. cuju_engine-0.3.0/include/cuju/assets/scenario_builder.h +0 -801
  488. cuju_engine-0.3.0/include/cuju/ball.h +0 -348
  489. cuju_engine-0.3.0/include/cuju/batch/agent_setup.h +0 -164
  490. cuju_engine-0.3.0/include/cuju/batch/batch_core.h +0 -866
  491. cuju_engine-0.3.0/include/cuju/batch/batch_environment.h +0 -778
  492. cuju_engine-0.3.0/include/cuju/batch/memory_estimate.h +0 -72
  493. cuju_engine-0.3.0/include/cuju/batch/render_states.h +0 -63
  494. cuju_engine-0.3.0/include/cuju/batch/stacked_state.h +0 -82
  495. cuju_engine-0.3.0/include/cuju/batch/state_difference.h +0 -128
  496. cuju_engine-0.3.0/include/cuju/batch/tables.h +0 -93
  497. cuju_engine-0.3.0/include/cuju/cpu/batch_environment.h +0 -467
  498. cuju_engine-0.3.0/include/cuju/cpu/job_thread.h +0 -121
  499. cuju_engine-0.3.0/include/cuju/cpu/placement.h +0 -214
  500. cuju_engine-0.3.0/include/cuju/cpu/processors.h +0 -152
  501. cuju_engine-0.3.0/include/cuju/engine/engine_info.h +0 -95
  502. cuju_engine-0.3.0/include/cuju/engine/game_engine.h +0 -782
  503. cuju_engine-0.3.0/include/cuju/file_path.h +0 -24
  504. cuju_engine-0.3.0/include/cuju/floating_point.h +0 -60
  505. cuju_engine-0.3.0/include/cuju/game_definitions.h +0 -36
  506. cuju_engine-0.3.0/include/cuju/gpu/batch_environment.cuh +0 -247
  507. cuju_engine-0.3.0/include/cuju/gpu/device_data.h +0 -138
  508. cuju_engine-0.3.0/include/cuju/host_device.h +0 -46
  509. cuju_engine-0.3.0/include/cuju/inline_vector.h +0 -95
  510. cuju_engine-0.3.0/include/cuju/math_utilities.h +0 -41
  511. cuju_engine-0.3.0/include/cuju/nvtx.h +0 -44
  512. cuju_engine-0.3.0/include/cuju/possession.h +0 -123
  513. cuju_engine-0.3.0/include/cuju/profiling.h +0 -70
  514. cuju_engine-0.3.0/include/cuju/quaternion.h +0 -286
  515. cuju_engine-0.3.0/include/cuju/real_to_string.h +0 -53
  516. cuju_engine-0.3.0/include/cuju/render/extract_render_state.h +0 -311
  517. cuju_engine-0.3.0/include/cuju/render/render_state.h +0 -168
  518. cuju_engine-0.3.0/include/cuju/rng.h +0 -115
  519. cuju_engine-0.3.0/include/cuju/simulation/access.h +0 -65
  520. cuju_engine-0.3.0/include/cuju/simulation/ai_controller.h +0 -2509
  521. cuju_engine-0.3.0/include/cuju/simulation/ai_functions.h +0 -190
  522. cuju_engine-0.3.0/include/cuju/simulation/ball_touch.h +0 -143
  523. cuju_engine-0.3.0/include/cuju/simulation/camera.h +0 -170
  524. cuju_engine-0.3.0/include/cuju/simulation/collisions.h +0 -619
  525. cuju_engine-0.3.0/include/cuju/simulation/containers.h +0 -26
  526. cuju_engine-0.3.0/include/cuju/simulation/enumerations.h +0 -64
  527. cuju_engine-0.3.0/include/cuju/simulation/environment.h +0 -619
  528. cuju_engine-0.3.0/include/cuju/simulation/geometry_offsets.h +0 -200
  529. cuju_engine-0.3.0/include/cuju/simulation/human_controller.h +0 -117
  530. cuju_engine-0.3.0/include/cuju/simulation/humanoid.h +0 -425
  531. cuju_engine-0.3.0/include/cuju/simulation/humanoid_process.h +0 -682
  532. cuju_engine-0.3.0/include/cuju/simulation/match_process.h +0 -392
  533. cuju_engine-0.3.0/include/cuju/simulation/observation_encoding.h +0 -182
  534. cuju_engine-0.3.0/include/cuju/simulation/officials.h +0 -400
  535. cuju_engine-0.3.0/include/cuju/simulation/player_controller.h +0 -248
  536. cuju_engine-0.3.0/include/cuju/simulation/player_possession.h +0 -126
  537. cuju_engine-0.3.0/include/cuju/simulation/referee.h +0 -356
  538. cuju_engine-0.3.0/include/cuju/simulation/render_mode.h +0 -196
  539. cuju_engine-0.3.0/include/cuju/simulation/reset.h +0 -731
  540. cuju_engine-0.3.0/include/cuju/simulation/select_animation.h +0 -2828
  541. cuju_engine-0.3.0/include/cuju/simulation/state_io.h +0 -94
  542. cuju_engine-0.3.0/include/cuju/simulation/static_data.h +0 -108
  543. cuju_engine-0.3.0/include/cuju/simulation/team_ai.h +0 -533
  544. cuju_engine-0.3.0/include/cuju/simulation/team_process.h +0 -320
  545. cuju_engine-0.3.0/include/cuju/simulation/team_select.h +0 -207
  546. cuju_engine-0.3.0/include/cuju/simulation/touch.h +0 -400
  547. cuju_engine-0.3.0/include/cuju/simulation/world.h +0 -264
  548. cuju_engine-0.3.0/include/cuju/span.h +0 -27
  549. cuju_engine-0.3.0/include/cuju/state/archive.h +0 -195
  550. cuju_engine-0.3.0/include/cuju/state/environment_state.h +0 -892
  551. cuju_engine-0.3.0/include/cuju/vector3.h +0 -232
  552. cuju_engine-0.3.0/include/cuju/warp.h +0 -252
  553. cuju_engine-0.3.0/include/cuju/work_area.h +0 -99
  554. cuju_engine-0.3.0/include/cuju/x86.h +0 -35
  555. cuju_engine-0.3.0/packages/cuju-gfootball/README.md +0 -78
  556. cuju_engine-0.3.0/packages/cuju-gfootball/pyproject.toml +0 -50
  557. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/__init__.py +0 -28
  558. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/__main__.py +0 -10
  559. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/_startup.py +0 -224
  560. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/_version.py +0 -5
  561. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball.pth +0 -1
  562. cuju_engine-0.3.0/packaging/cuju-grf-media/.gitignore +0 -7
  563. cuju_engine-0.3.0/packaging/cuju-grf-media/NOTICE +0 -31
  564. cuju_engine-0.3.0/packaging/cuju-grf-media/README.md +0 -18
  565. cuju_engine-0.3.0/packaging/cuju-grf-media/pyproject.toml +0 -39
  566. cuju_engine-0.3.0/packaging/cuju-grf-media/sources.txt +0 -113
  567. cuju_engine-0.3.0/packaging/cuju-grf-media/src/cuju_grf_media/__init__.py +0 -9
  568. cuju_engine-0.3.0/pyproject.toml +0 -139
  569. cuju_engine-0.3.0/python/cuju/__init__.py +0 -217
  570. cuju_engine-0.3.0/python/cuju/__main__.py +0 -262
  571. cuju_engine-0.3.0/python/cuju/_batch/__init__.py +0 -4
  572. cuju_engine-0.3.0/python/cuju/_batch/allocator.py +0 -52
  573. cuju_engine-0.3.0/python/cuju/_batch/assets.py +0 -68
  574. cuju_engine-0.3.0/python/cuju/_batch/environment.py +0 -1890
  575. cuju_engine-0.3.0/python/cuju/_batch/frame_stack.py +0 -114
  576. cuju_engine-0.3.0/python/cuju/_batch/library.py +0 -190
  577. cuju_engine-0.3.0/python/cuju/_batch/log.py +0 -103
  578. cuju_engine-0.3.0/python/cuju/_batch/memory.py +0 -70
  579. cuju_engine-0.3.0/python/cuju/_batch/operators.py +0 -55
  580. cuju_engine-0.3.0/python/cuju/_batch/pinned.py +0 -39
  581. cuju_engine-0.3.0/python/cuju/_batch/pixels.py +0 -207
  582. cuju_engine-0.3.0/python/cuju/_batch/state.py +0 -77
  583. cuju_engine-0.3.0/python/cuju/_checksums.py +0 -60
  584. cuju_engine-0.3.0/python/cuju/_cli_contract.py +0 -244
  585. cuju_engine-0.3.0/python/cuju/_cli_parsers.py +0 -191
  586. cuju_engine-0.3.0/python/cuju/_completion.py +0 -277
  587. cuju_engine-0.3.0/python/cuju/_dump_to_txt.py +0 -66
  588. cuju_engine-0.3.0/python/cuju/_grf_config.py +0 -331
  589. cuju_engine-0.3.0/python/cuju/_library_path.py +0 -141
  590. cuju_engine-0.3.0/python/cuju/_media.py +0 -113
  591. cuju_engine-0.3.0/python/cuju/_pixels.py +0 -276
  592. cuju_engine-0.3.0/python/cuju/_plugins.py +0 -106
  593. cuju_engine-0.3.0/python/cuju/_python_players.py +0 -224
  594. cuju_engine-0.3.0/python/cuju/_replay_command.py +0 -109
  595. cuju_engine-0.3.0/python/cuju/_replay_player.py +0 -42
  596. cuju_engine-0.3.0/python/cuju/_replays.py +0 -414
  597. cuju_engine-0.3.0/python/cuju/_script_helpers.py +0 -109
  598. cuju_engine-0.3.0/python/cuju/_version.py +0 -6
  599. cuju_engine-0.3.0/python/cuju/action_log.py +0 -371
  600. cuju_engine-0.3.0/python/cuju/check.py +0 -596
  601. cuju_engine-0.3.0/python/cuju/dumps.py +0 -942
  602. cuju_engine-0.3.0/python/cuju/engine_status.py +0 -106
  603. cuju_engine-0.3.0/python/cuju/env.py +0 -1168
  604. cuju_engine-0.3.0/python/cuju/errors.py +0 -108
  605. cuju_engine-0.3.0/python/cuju/gfootball/__init__.py +0 -60
  606. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/core.py +0 -361
  607. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/envs/registration.py +0 -284
  608. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/error.py +0 -230
  609. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/logger.py +0 -56
  610. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/__init__.py +0 -30
  611. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/box.py +0 -171
  612. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/dict.py +0 -162
  613. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/discrete.py +0 -41
  614. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_binary.py +0 -61
  615. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_discrete.py +0 -77
  616. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/space.py +0 -94
  617. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/tuple.py +0 -96
  618. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/utils.py +0 -228
  619. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/__init__.py +0 -13
  620. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/closer.py +0 -72
  621. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/colorize.py +0 -36
  622. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/ezpickle.py +0 -37
  623. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/json_utils.py +0 -27
  624. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/seeding.py +0 -101
  625. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/version.py +0 -5
  626. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/order_enforcing.py +0 -20
  627. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/time_limit.py +0 -31
  628. cuju_engine-0.3.0/python/cuju/gfootball/dump_to_txt.py +0 -49
  629. cuju_engine-0.3.0/python/cuju/gfootball/dump_to_video.py +0 -33
  630. cuju_engine-0.3.0/python/cuju/gfootball/env/__init__.py +0 -271
  631. cuju_engine-0.3.0/python/cuju/gfootball/env/config.py +0 -163
  632. cuju_engine-0.3.0/python/cuju/gfootball/env/constants.py +0 -33
  633. cuju_engine-0.3.0/python/cuju/gfootball/env/controller_base.py +0 -114
  634. cuju_engine-0.3.0/python/cuju/gfootball/env/event_queue.py +0 -54
  635. cuju_engine-0.3.0/python/cuju/gfootball/env/football_action_set.py +0 -220
  636. cuju_engine-0.3.0/python/cuju/gfootball/env/football_action_set_test.py +0 -76
  637. cuju_engine-0.3.0/python/cuju/gfootball/env/football_env.py +0 -225
  638. cuju_engine-0.3.0/python/cuju/gfootball/env/football_env_core.py +0 -447
  639. cuju_engine-0.3.0/python/cuju/gfootball/env/football_env_test.py +0 -692
  640. cuju_engine-0.3.0/python/cuju/gfootball/env/gym_test.py +0 -47
  641. cuju_engine-0.3.0/python/cuju/gfootball/env/observation_preprocessing.py +0 -94
  642. cuju_engine-0.3.0/python/cuju/gfootball/env/observation_processor.py +0 -526
  643. cuju_engine-0.3.0/python/cuju/gfootball/env/observation_rotation.py +0 -163
  644. cuju_engine-0.3.0/python/cuju/gfootball/env/observation_rotation_test.py +0 -84
  645. cuju_engine-0.3.0/python/cuju/gfootball/env/player_base.py +0 -46
  646. cuju_engine-0.3.0/python/cuju/gfootball/env/players/__init__.py +0 -16
  647. cuju_engine-0.3.0/python/cuju/gfootball/env/players/agent.py +0 -39
  648. cuju_engine-0.3.0/python/cuju/gfootball/env/players/bot.py +0 -217
  649. cuju_engine-0.3.0/python/cuju/gfootball/env/players/gamepad.py +0 -81
  650. cuju_engine-0.3.0/python/cuju/gfootball/env/players/keyboard.py +0 -72
  651. cuju_engine-0.3.0/python/cuju/gfootball/env/players/lazy.py +0 -31
  652. cuju_engine-0.3.0/python/cuju/gfootball/env/players/ppo2_cnn.py +0 -119
  653. cuju_engine-0.3.0/python/cuju/gfootball/env/players/replay.py +0 -40
  654. cuju_engine-0.3.0/python/cuju/gfootball/env/remote_football_env.py +0 -189
  655. cuju_engine-0.3.0/python/cuju/gfootball/env/scenario_builder.py +0 -125
  656. cuju_engine-0.3.0/python/cuju/gfootball/env/script_helpers.py +0 -130
  657. cuju_engine-0.3.0/python/cuju/gfootball/env/script_helpers_test.py +0 -107
  658. cuju_engine-0.3.0/python/cuju/gfootball/env/wrappers.py +0 -440
  659. cuju_engine-0.3.0/python/cuju/gfootball/env/wrappers_test.py +0 -150
  660. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/__init__.py +0 -17
  661. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/config.py +0 -30
  662. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/example_client.py +0 -107
  663. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server_pb2.py +0 -501
  664. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server_pb2_grpc.py +0 -113
  665. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master_pb2.py +0 -184
  666. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master_pb2_grpc.py +0 -62
  667. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/utils.py +0 -52
  668. cuju_engine-0.3.0/python/cuju/gfootball/examples/__init__.py +0 -16
  669. cuju_engine-0.3.0/python/cuju/gfootball/examples/models.py +0 -66
  670. cuju_engine-0.3.0/python/cuju/gfootball/examples/run_multiagent_rllib.py +0 -140
  671. cuju_engine-0.3.0/python/cuju/gfootball/examples/run_ppo2.py +0 -123
  672. cuju_engine-0.3.0/python/cuju/gfootball/play_game.py +0 -73
  673. cuju_engine-0.3.0/python/cuju/gfootball/replay.py +0 -43
  674. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_competition.py +0 -59
  675. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_easy_stochastic.py +0 -57
  676. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_hard_stochastic.py +0 -57
  677. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_kaggle.py +0 -60
  678. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_stochastic.py +0 -57
  679. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/1_vs_1_easy.py +0 -39
  680. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/5_vs_5.py +0 -46
  681. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/__init__.py +0 -31
  682. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_3_vs_1_with_keeper.py +0 -42
  683. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_corner.py +0 -59
  684. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_counterattack_easy.py +0 -59
  685. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_counterattack_hard.py +0 -59
  686. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_empty_goal.py +0 -39
  687. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_empty_goal_close.py +0 -39
  688. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_pass_and_shoot_with_keeper.py +0 -41
  689. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_pass_and_shoot_with_keeper.py +0 -41
  690. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_to_score.py +0 -44
  691. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_to_score_with_keeper.py +0 -44
  692. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_single_goal_versus_lazy.py +0 -63
  693. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/test_example_multiagent.py +0 -42
  694. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_deterministic.py +0 -58
  695. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_easy_deterministic.py +0 -58
  696. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_hard_deterministic.py +0 -58
  697. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_deterministic.py +0 -58
  698. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_stochastic.py +0 -58
  699. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_deterministic.py +0 -47
  700. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_stochastic.py +0 -47
  701. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/__init__.py +0 -31
  702. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/corner_test.py +0 -38
  703. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/goal_test.py +0 -35
  704. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/keeper_test.py +0 -38
  705. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/kickoff_for_goal_loosing_team_test.py +0 -34
  706. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/multiagent_wrapper.py +0 -60
  707. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/offside_test.py +0 -39
  708. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/penalty.py +0 -34
  709. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/second_half.py +0 -33
  710. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/symmetric.py +0 -53
  711. cuju_engine-0.3.0/python/cuju/gfootball_engine/__init__.py +0 -31
  712. cuju_engine-0.3.0/python/cuju/gfootball_engine/_gameplayfootball.py +0 -1624
  713. cuju_engine-0.3.0/python/cuju/gfootball_engine/_native.py +0 -193
  714. cuju_engine-0.3.0/python/cuju/gfootball_engine/_pickle_names.py +0 -114
  715. cuju_engine-0.3.0/python/cuju/gfootball_engine/_render_hooks.py +0 -156
  716. cuju_engine-0.3.0/python/cuju/kaggle.py +0 -425
  717. cuju_engine-0.3.0/python/cuju/multi_device.py +0 -401
  718. cuju_engine-0.3.0/python/cuju/players.py +0 -260
  719. cuju_engine-0.3.0/python/cuju/raw.py +0 -93
  720. cuju_engine-0.3.0/python/cuju/scenarios.py +0 -661
  721. cuju_engine-0.3.0/python/cuju/state.py +0 -211
  722. cuju_engine-0.3.0/python/cuju/wrappers.py +0 -325
  723. cuju_engine-0.3.0/src/cuju_cpu.cpp +0 -39
  724. cuju_engine-0.3.0/src/cuju_cuda.cu +0 -14
  725. cuju_engine-0.3.0/src/engine_api.h +0 -487
  726. cuju_engine-0.3.0/src/environment_api.h +0 -623
  727. cuju_engine-0.3.0/src/environment_state.cpp +0 -103
  728. cuju_engine-0.3.0/src/render/assets/ase.cpp +0 -368
  729. cuju_engine-0.3.0/src/render/assets/assets.h +0 -147
  730. cuju_engine-0.3.0/src/render/assets/geometry.cpp +0 -185
  731. cuju_engine-0.3.0/src/render/assets/object.cpp +0 -202
  732. cuju_engine-0.3.0/src/render/assets/surface.cpp +0 -58
  733. cuju_engine-0.3.0/src/render/assets/text.cpp +0 -108
  734. cuju_engine-0.3.0/src/render/assets/text.h +0 -40
  735. cuju_engine-0.3.0/src/render/fpenv.cpp +0 -188
  736. cuju_engine-0.3.0/src/render/fpenv.h +0 -225
  737. cuju_engine-0.3.0/src/render/frame.cpp +0 -531
  738. cuju_engine-0.3.0/src/render/frame.h +0 -172
  739. cuju_engine-0.3.0/src/render/gl/context.cpp +0 -911
  740. cuju_engine-0.3.0/src/render/gl/context.h +0 -294
  741. cuju_engine-0.3.0/src/render/gl/draw.cpp +0 -566
  742. cuju_engine-0.3.0/src/render/gl/fragment.cpp +0 -424
  743. cuju_engine-0.3.0/src/render/gl/fragment.h +0 -131
  744. cuju_engine-0.3.0/src/render/gl/mip_cache.cpp +0 -95
  745. cuju_engine-0.3.0/src/render/gl/mip_cache.h +0 -49
  746. cuju_engine-0.3.0/src/render/gl/pipeline.h +0 -241
  747. cuju_engine-0.3.0/src/render/gl/program.cpp +0 -118
  748. cuju_engine-0.3.0/src/render/gl/program.h +0 -189
  749. cuju_engine-0.3.0/src/render/gl/scene.cpp +0 -868
  750. cuju_engine-0.3.0/src/render/gl/setup.cpp +0 -388
  751. cuju_engine-0.3.0/src/render/lanes.h +0 -480
  752. cuju_engine-0.3.0/src/render/mipmap.cpp +0 -286
  753. cuju_engine-0.3.0/src/render/mipmap.h +0 -31
  754. cuju_engine-0.3.0/src/render/numerics.h +0 -116
  755. cuju_engine-0.3.0/src/render/overlay2d/atlas.cpp +0 -262
  756. cuju_engine-0.3.0/src/render/overlay2d/atlas.h +0 -101
  757. cuju_engine-0.3.0/src/render/overlay2d/overlay.cpp +0 -294
  758. cuju_engine-0.3.0/src/render/overlay2d/overlay.h +0 -135
  759. cuju_engine-0.3.0/src/render/overlay2d/rotozoom.cpp +0 -123
  760. cuju_engine-0.3.0/src/render/overlay2d/surface.cpp +0 -96
  761. cuju_engine-0.3.0/src/render/overlay2d/surface.h +0 -63
  762. cuju_engine-0.3.0/src/render/pitch/bmp.cpp +0 -119
  763. cuju_engine-0.3.0/src/render/pitch/bmp.h +0 -32
  764. cuju_engine-0.3.0/src/render/pitch/perlin.cpp +0 -109
  765. cuju_engine-0.3.0/src/render/pitch/perlin.h +0 -49
  766. cuju_engine-0.3.0/src/render/pitch/pitch.cpp +0 -686
  767. cuju_engine-0.3.0/src/render/pitch/pitch.h +0 -72
  768. cuju_engine-0.3.0/src/render/pixels.cpp +0 -564
  769. cuju_engine-0.3.0/src/render/pixels.h +0 -78
  770. cuju_engine-0.3.0/src/render/polynomials.h +0 -118
  771. cuju_engine-0.3.0/src/render/render_api.cpp +0 -339
  772. cuju_engine-0.3.0/src/render/render_api.h +0 -92
  773. cuju_engine-0.3.0/src/render/sampler.cpp +0 -964
  774. cuju_engine-0.3.0/src/render/sampler.h +0 -69
  775. cuju_engine-0.3.0/src/render/scene/gl_stream.cpp +0 -532
  776. cuju_engine-0.3.0/src/render/scene/gl_stream.h +0 -239
  777. cuju_engine-0.3.0/src/render/scene/grf_math.cpp +0 -137
  778. cuju_engine-0.3.0/src/render/scene/grf_math.h +0 -270
  779. cuju_engine-0.3.0/src/render/scene/gui.cpp +0 -380
  780. cuju_engine-0.3.0/src/render/scene/gui.h +0 -162
  781. cuju_engine-0.3.0/src/render/scene/match.cpp +0 -625
  782. cuju_engine-0.3.0/src/render/scene/match.h +0 -203
  783. cuju_engine-0.3.0/src/render/scene/netting.cpp +0 -120
  784. cuju_engine-0.3.0/src/render/scene/netting.h +0 -56
  785. cuju_engine-0.3.0/src/render/scene/random.h +0 -56
  786. cuju_engine-0.3.0/src/render/scene/renderer3d.cpp +0 -868
  787. cuju_engine-0.3.0/src/render/scene/renderer3d.h +0 -242
  788. cuju_engine-0.3.0/src/render/scene/scene.cpp +0 -832
  789. cuju_engine-0.3.0/src/render/scene/scene.h +0 -269
  790. cuju_engine-0.3.0/src/render/scene/skinning.cpp +0 -322
  791. cuju_engine-0.3.0/src/render/scene/skinning.h +0 -90
  792. cuju_engine-0.3.0/src/render/scene/vertex_colors.cpp +0 -82
  793. cuju_engine-0.3.0/src/render/scene/vertex_colors.h +0 -23
  794. cuju_engine-0.3.0/src/render/sha256.cpp +0 -102
  795. cuju_engine-0.3.0/src/render/sha256.h +0 -39
  796. cuju_engine-0.3.0/src/render/shaders/ambient.cpp +0 -312
  797. cuju_engine-0.3.0/src/render/shaders/ambient.h +0 -45
  798. cuju_engine-0.3.0/src/render/shaders/lighting.cpp +0 -303
  799. cuju_engine-0.3.0/src/render/shaders/lighting.h +0 -46
  800. cuju_engine-0.3.0/src/render/shaders/overlay.cpp +0 -96
  801. cuju_engine-0.3.0/src/render/shaders/overlay.h +0 -32
  802. cuju_engine-0.3.0/src/render/shaders/postprocess.cpp +0 -237
  803. cuju_engine-0.3.0/src/render/shaders/postprocess.h +0 -39
  804. cuju_engine-0.3.0/src/render/shaders/quad_vs.h +0 -40
  805. cuju_engine-0.3.0/src/render/shaders/simple.cpp +0 -289
  806. cuju_engine-0.3.0/src/render/shaders/simple.h +0 -36
  807. cuju_engine-0.3.0/src/render/shaders/zphase.cpp +0 -72
  808. cuju_engine-0.3.0/src/render/shaders/zphase.h +0 -30
  809. cuju_engine-0.3.0/src/render/srgb.h +0 -53
  810. cuju_engine-0.3.0/src/render/texture.h +0 -85
  811. cuju_engine-0.3.0/src/scenario_api.h +0 -118
  812. cuju_engine-0.3.0/src/state_api.h +0 -123
  813. cuju_engine-0.3.0/tests/conftest.py +0 -98
  814. cuju_engine-0.3.0/tests/test_action_log.py +0 -122
  815. cuju_engine-0.3.0/tests/test_allocator.py +0 -67
  816. cuju_engine-0.3.0/tests/test_async.py +0 -157
  817. cuju_engine-0.3.0/tests/test_auto_device.py +0 -36
  818. cuju_engine-0.3.0/tests/test_backends.py +0 -19
  819. cuju_engine-0.3.0/tests/test_bundle_cache.py +0 -158
  820. cuju_engine-0.3.0/tests/test_check.py +0 -216
  821. cuju_engine-0.3.0/tests/test_cli.py +0 -563
  822. cuju_engine-0.3.0/tests/test_cli_conformance.py +0 -439
  823. cuju_engine-0.3.0/tests/test_compare_with_grf.py +0 -185
  824. cuju_engine-0.3.0/tests/test_compile.py +0 -104
  825. cuju_engine-0.3.0/tests/test_data_checksums.py +0 -38
  826. cuju_engine-0.3.0/tests/test_device_checks.py +0 -148
  827. cuju_engine-0.3.0/tests/test_devices.py +0 -53
  828. cuju_engine-0.3.0/tests/test_difficulty.py +0 -34
  829. cuju_engine-0.3.0/tests/test_digests.py +0 -53
  830. cuju_engine-0.3.0/tests/test_distribution.py +0 -252
  831. cuju_engine-0.3.0/tests/test_dump_replay.py +0 -105
  832. cuju_engine-0.3.0/tests/test_dumps.py +0 -301
  833. cuju_engine-0.3.0/tests/test_engine_module.py +0 -455
  834. cuju_engine-0.3.0/tests/test_engine_render_mode.py +0 -224
  835. cuju_engine-0.3.0/tests/test_env.py +0 -353
  836. cuju_engine-0.3.0/tests/test_errors.py +0 -91
  837. cuju_engine-0.3.0/tests/test_first_index.py +0 -54
  838. cuju_engine-0.3.0/tests/test_fork.py +0 -101
  839. cuju_engine-0.3.0/tests/test_gfootball.py +0 -142
  840. cuju_engine-0.3.0/tests/test_gfootball_alias.py +0 -670
  841. cuju_engine-0.3.0/tests/test_gfootball_port.py +0 -301
  842. cuju_engine-0.3.0/tests/test_gpu_errors.py +0 -21
  843. cuju_engine-0.3.0/tests/test_grf_config.py +0 -109
  844. cuju_engine-0.3.0/tests/test_grf_suite.py +0 -136
  845. cuju_engine-0.3.0/tests/test_import.py +0 -133
  846. cuju_engine-0.3.0/tests/test_kaggle.py +0 -186
  847. cuju_engine-0.3.0/tests/test_long.py +0 -69
  848. cuju_engine-0.3.0/tests/test_masked_reset.py +0 -119
  849. cuju_engine-0.3.0/tests/test_memory.py +0 -106
  850. cuju_engine-0.3.0/tests/test_memory_estimate.py +0 -333
  851. cuju_engine-0.3.0/tests/test_multi_device.py +0 -136
  852. cuju_engine-0.3.0/tests/test_nvtx.py +0 -40
  853. cuju_engine-0.3.0/tests/test_observers.py +0 -446
  854. cuju_engine-0.3.0/tests/test_players.py +0 -274
  855. cuju_engine-0.3.0/tests/test_plugins.py +0 -297
  856. cuju_engine-0.3.0/tests/test_processors.py +0 -75
  857. cuju_engine-0.3.0/tests/test_python_players.py +0 -227
  858. cuju_engine-0.3.0/tests/test_referee_animations.py +0 -57
  859. cuju_engine-0.3.0/tests/test_render_frames.py +0 -954
  860. cuju_engine-0.3.0/tests/test_render_media.py +0 -389
  861. cuju_engine-0.3.0/tests/test_reset_seeds.py +0 -87
  862. cuju_engine-0.3.0/tests/test_roles.py +0 -103
  863. cuju_engine-0.3.0/tests/test_shapes.py +0 -55
  864. cuju_engine-0.3.0/tests/test_stacked_state.py +0 -155
  865. cuju_engine-0.3.0/tests/test_state.py +0 -76
  866. cuju_engine-0.3.0/tests/test_state_errors.py +0 -52
  867. cuju_engine-0.3.0/tests/test_version.py +0 -56
  868. cuju_engine-0.3.0/tests/test_wrappers.py +0 -262
  869. cuju_engine-0.3.0/tests/test_write_dump.py +0 -105
  870. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/.clang-format +0 -0
  871. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/.dockerignore +0 -0
  872. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/.gitattributes +0 -0
  873. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/.gitignore +0 -0
  874. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/CMakeLists.txt +0 -0
  875. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/Dockerfile +0 -0
  876. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSE +0 -0
  877. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/BSD-3-Clause.txt +0 -0
  878. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/BSL-1.0.txt +0 -0
  879. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/LGPL-2.1-or-later.txt +0 -0
  880. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/MIT-Mesa.txt +0 -0
  881. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/MIT-gym.txt +0 -0
  882. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/MIT.txt +0 -0
  883. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/OFL-1.1.txt +0 -0
  884. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/SunPro.txt +0 -0
  885. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/Unlicense.txt +0 -0
  886. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/LICENSES/Zlib.txt +0 -0
  887. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/acos_double.h +0 -0
  888. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/asinf.h +0 -0
  889. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/common.h +0 -0
  890. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/inverse_trigonometric_float.h +0 -0
  891. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/pow.h +0 -0
  892. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/powf.h +0 -0
  893. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/sin_double.h +0 -0
  894. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/sincos_double.h +0 -0
  895. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/sincosf.h +0 -0
  896. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/tan_double.h +0 -0
  897. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/tanf.h +0 -0
  898. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/trigonometric_double.h +0 -0
  899. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/include/cuju/libm/trigonometric_tables_double.h +0 -0
  900. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/packages/cuju-gfootball/LICENSE +0 -0
  901. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/SHA256SUMS +0 -0
  902. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/animations.bin +0 -0
  903. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_competition_l0_r0.cjb +0 -0
  904. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_easy_stochastic_l0_r0.cjb +0 -0
  905. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_hard_stochastic_l0_r0.cjb +0 -0
  906. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_kaggle_l0_r0.cjb +0 -0
  907. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/11_vs_11_stochastic_l0_r0.cjb +0 -0
  908. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/1_vs_1_easy_l0_r0.cjb +0 -0
  909. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/5_vs_5_l0_r0.cjb +0 -0
  910. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_3_vs_1_with_keeper_l0_r0.cjb +0 -0
  911. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_corner_l0_r0.cjb +0 -0
  912. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_counterattack_easy_l0_r0.cjb +0 -0
  913. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_counterattack_hard_l0_r0.cjb +0 -0
  914. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_empty_goal_close_l0_r0.cjb +0 -0
  915. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_empty_goal_l0_r0.cjb +0 -0
  916. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
  917. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_run_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
  918. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_run_to_score_l0_r0.cjb +0 -0
  919. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_run_to_score_with_keeper_l0_r0.cjb +0 -0
  920. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/academy_single_goal_versus_lazy_l0_r0.cjb +0 -0
  921. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/assets/test_example_multiagent_l0_r0.cjb +0 -0
  922. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/digests.json +0 -0
  923. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/render_digests.json.z +0 -0
  924. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_competition.py +0 -0
  925. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_easy_stochastic.py +0 -0
  926. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_hard_stochastic.py +0 -0
  927. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_kaggle.py +0 -0
  928. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/11_vs_11_stochastic.py +0 -0
  929. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/1_vs_1_easy.py +0 -0
  930. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/5_vs_5.py +0 -0
  931. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_3_vs_1_with_keeper.py +0 -0
  932. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_corner.py +0 -0
  933. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_counterattack_easy.py +0 -0
  934. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_counterattack_hard.py +0 -0
  935. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_empty_goal.py +0 -0
  936. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_empty_goal_close.py +0 -0
  937. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_pass_and_shoot_with_keeper.py +0 -0
  938. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_run_pass_and_shoot_with_keeper.py +0 -0
  939. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_run_to_score.py +0 -0
  940. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_run_to_score_with_keeper.py +0 -0
  941. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/academy_single_goal_versus_lazy.py +0 -0
  942. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/data/scenarios/test_example_multiagent.py +0 -0
  943. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/GRF_SOURCES +0 -0
  944. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_cv2.py +0 -0
  945. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/__init__.py +0 -0
  946. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/_vendored/GYM_SOURCES +0 -0
  947. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/_vendored/__init__.py +0 -0
  948. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/_vendored/envs/__init__.py +0 -0
  949. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/_gym/_vendored/wrappers/__init__.py +0 -0
  950. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/eval_server/proto/game_server.proto +0 -0
  951. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/python/cuju/gfootball/eval_server/proto/master.proto +0 -0
  952. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/src/render/CMakeLists.txt +0 -0
  953. {cuju_engine-0.3.0 → cuju_engine-0.4.0}/tests/data/render_5_vs_5_seed_0.bin.z +0 -0
  954. {cuju_engine-0.3.0/tests → cuju_engine-0.4.0/tests/grf}/test_port_vs_env.py +0 -0
@@ -0,0 +1,124 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ name: ci
5
+
6
+ on:
7
+ push:
8
+ pull_request:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ lint:
15
+ uses: cuju-football/.github/.github/workflows/ruff.yml@main
16
+ with:
17
+ paths: python tests examples packages ci
18
+
19
+ cpu:
20
+ needs: grf-media
21
+ runs-on: ubuntu-24.04
22
+ steps:
23
+ - uses: actions/checkout@v7
24
+ - uses: actions/setup-python@v7
25
+ with:
26
+ python-version: '3.12'
27
+ - name: Install PyTorch for the CPU
28
+ run: pip install torch --index-url https://download.pytorch.org/whl/cpu
29
+ - name: Build and install the CPU backend
30
+ # hatchling builds the wheel of cuju-gfootball in the tests.
31
+ run: CMAKE_ARGS=-DCUJU_CUDA=OFF pip install '.[test,spaces]' hatchling opencv-python-headless
32
+ - uses: actions/download-artifact@v8
33
+ with:
34
+ name: grf-media
35
+ path: grf-media
36
+ - name: Install the pinned GRF media
37
+ run: pip install --no-index --find-links grf-media cuju-grf-media
38
+ - name: Lint the C++ and CUDA
39
+ run: |
40
+ find include src -name '*.h' -o -name '*.cuh' -o -name '*.cpp' -o -name '*.cu' \
41
+ | xargs clang-format-18 --dry-run -Werror
42
+ - name: Links of the README and the docs
43
+ run: python ci/checks/check_links.py --offline
44
+ - name: Self-check
45
+ run: pytest tests
46
+
47
+ cpu-arm:
48
+ runs-on: ubuntu-24.04-arm
49
+ steps:
50
+ - uses: actions/checkout@v7
51
+ - uses: actions/setup-python@v7
52
+ with:
53
+ python-version: '3.12'
54
+ - name: Install PyTorch for the CPU
55
+ run: pip install torch --index-url https://download.pytorch.org/whl/cpu
56
+ - name: Build and install the CPU backend
57
+ run: CMAKE_ARGS=-DCUJU_CUDA=OFF pip install '.[test,spaces]' opencv-python-headless
58
+ - name: Self-check
59
+ run: pytest tests
60
+
61
+ cpu-windows:
62
+ needs: grf-media
63
+ runs-on: windows-2022
64
+ steps:
65
+ - uses: actions/checkout@v7
66
+ - uses: actions/setup-python@v7
67
+ with:
68
+ python-version: '3.12'
69
+ - name: Install PyTorch for the CPU
70
+ run: pip install torch --index-url https://download.pytorch.org/whl/cpu
71
+ - name: Build and install the CPU backend
72
+ run: pip install ".[test,spaces]" hatchling opencv-python-headless
73
+ env:
74
+ CMAKE_ARGS: -DCUJU_CUDA=OFF
75
+ - uses: actions/download-artifact@v8
76
+ with:
77
+ name: grf-media
78
+ path: grf-media
79
+ - name: Install the pinned GRF media
80
+ run: pip install --no-index --find-links grf-media cuju-grf-media
81
+ - name: Self-check
82
+ run: pytest tests
83
+
84
+ grf-media:
85
+ runs-on: ubuntu-24.04
86
+ steps:
87
+ - uses: actions/checkout@v7
88
+ - uses: actions/checkout@v7
89
+ with:
90
+ repository: google-research/football
91
+ ref: 3d9e754720a95621bba6475c4d3b0d56fe919014
92
+ path: grf
93
+ persist-credentials: false
94
+ - uses: actions/setup-python@v7
95
+ with:
96
+ python-version: '3.12'
97
+ - name: Render the glyph atlas with SDL_ttf
98
+ run: |
99
+ sudo apt-get update
100
+ sudo apt-get install -y libsdl2-2.0-0 libsdl2-ttf-2.0-0 libfreetype6 libharfbuzz0b
101
+ python ci/make/make_glyph_atlas.py grf/third_party/fonts/AlegreyaSansSC-ExtraBold.ttf generated
102
+ - name: Build and check the GRF media wheel
103
+ run: |
104
+ python ci/make/make_render_media.py grf --generated generated
105
+ pip install build
106
+ python -m build --wheel --outdir grf-media packaging/cuju-grf-media
107
+ python ci/checks/check_wheel.py --grf-media grf-media/*.whl
108
+ - uses: actions/upload-artifact@v7
109
+ with:
110
+ name: grf-media
111
+ path: grf-media/*.whl
112
+ if-no-files-found: error
113
+
114
+ cuda-compile:
115
+ runs-on: ubuntu-24.04
116
+ container: nvidia/cuda:12.9.1-devel-ubuntu24.04
117
+ steps:
118
+ - uses: actions/checkout@v7
119
+ - name: Install the build tools
120
+ run: apt-get update && apt-get install -y --no-install-recommends cmake g++ make
121
+ - name: Compile the CUDA backend for one architecture
122
+ run: |
123
+ cmake -S . -B build -DCUJU_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=80
124
+ cmake --build build --target cuju_cuda -j 4
@@ -0,0 +1,427 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ name: release
5
+
6
+ on:
7
+ push:
8
+ tags: ['v*']
9
+ workflow_dispatch:
10
+ inputs:
11
+ publish:
12
+ description: Publish the sdist and the wheels to PyPI
13
+ type: boolean
14
+ default: false
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ sdist:
21
+ runs-on: ubuntu-24.04
22
+ steps:
23
+ - uses: actions/checkout@v7
24
+ - uses: actions/setup-python@v7
25
+ with:
26
+ python-version: '3.12'
27
+ - name: Date every file of the build by the commit
28
+ run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
29
+ - name: Build the sdist twice and compare the bytes
30
+ run: |
31
+ pip install build
32
+ python -m build --sdist --outdir dist
33
+ python -m build --sdist --outdir "$RUNNER_TEMP/sdist-again"
34
+ python ci/checks/compare_builds.py dist "$RUNNER_TEMP/sdist-again"
35
+ - uses: actions/upload-artifact@v7
36
+ with:
37
+ name: sdist
38
+ path: dist/*.tar.gz
39
+
40
+ gfootball:
41
+ runs-on: ubuntu-24.04
42
+ steps:
43
+ - uses: actions/checkout@v7
44
+ - uses: actions/setup-python@v7
45
+ with:
46
+ python-version: '3.12'
47
+ - name: Date every file of the build by the commit
48
+ run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
49
+ - name: Build the sdist and the wheel of cuju-gfootball twice and compare the bytes
50
+ run: |
51
+ pip install build
52
+ python -m build packages/cuju-gfootball --outdir dist
53
+ python -m build packages/cuju-gfootball --outdir "$RUNNER_TEMP/gfootball-again"
54
+ python ci/checks/compare_builds.py dist "$RUNNER_TEMP/gfootball-again"
55
+ - name: Check the contents of the wheel
56
+ run: |
57
+ python ci/checks/check_wheel.py --alias dist/*.whl
58
+ python -c "import sys, zipfile; [print(n) for n in zipfile.ZipFile(sys.argv[1]).namelist()]" dist/*.whl
59
+ - uses: actions/upload-artifact@v7
60
+ with:
61
+ name: cuju-gfootball
62
+ path: dist/*
63
+
64
+ wheel:
65
+ name: wheel ${{ matrix.name }}
66
+ runs-on: ${{ matrix.runner }}
67
+ strategy:
68
+ fail-fast: false
69
+ matrix:
70
+ include:
71
+ # `-real` keeps PTX out, so no driver compiles it for a GPU no check covered.
72
+ - name: linux-x86-64
73
+ runner: ubuntu-24.04
74
+ cibuildwheel: cp312-manylinux_x86_64
75
+ before_all: bash ci/install_cuda.sh
76
+ environment: >-
77
+ PATH=/usr/local/cuda/bin:$PATH
78
+ CXX=clang++ CUDAHOSTCXX=g++
79
+ CMAKE_ARGS=-DCUJU_CUDA=ON
80
+ CMAKE_CUDA_ARCHITECTURES="75-real;80-real;86-real;89-real"
81
+ - name: linux-aarch64
82
+ runner: ubuntu-24.04-arm
83
+ cibuildwheel: cp312-manylinux_aarch64
84
+ before_all: dnf install -y clang
85
+ environment: CXX=clang++ CMAKE_ARGS=-DCUJU_CUDA=OFF
86
+ cpu_only: true
87
+ # CUDA 12.9 takes Visual Studio 2017 to 2022, which windows-2025 no longer has.
88
+ - name: windows-x86-64
89
+ runner: windows-2022
90
+ cmake_args: -DCUJU_CUDA=ON
91
+ cuda_architectures: 75-real;80-real;86-real;89-real
92
+ cuda: true
93
+ - name: macos-arm64
94
+ runner: macos-15
95
+ cmake_args: -DCUJU_CUDA=OFF
96
+ deployment_target: '11.0'
97
+ cpu_only: true
98
+ # macos-13 is retired, and macos-15-intel is the x86-64 image left.
99
+ - name: macos-x86-64
100
+ runner: macos-15-intel
101
+ cmake_args: -DCUJU_CUDA=OFF
102
+ deployment_target: '10.15'
103
+ cpu_only: true
104
+ defaults:
105
+ run:
106
+ shell: bash
107
+ env:
108
+ PIP_DISABLE_PIP_VERSION_CHECK: '1'
109
+ steps:
110
+ - uses: actions/checkout@v7
111
+ - uses: actions/setup-python@v7
112
+ with:
113
+ python-version: '3.12'
114
+ - name: Date every file of the build by the commit
115
+ run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
116
+ - name: Install the CUDA toolkit
117
+ if: matrix.cuda
118
+ uses: Jimver/cuda-toolkit@v0.2.36
119
+ with:
120
+ cuda: '12.9.1'
121
+ method: network
122
+ sub-packages: '["nvcc", "cudart", "visual_studio_integration"]'
123
+ - name: Use MSVC from the command line
124
+ if: runner.os == 'Windows'
125
+ shell: pwsh
126
+ run: |
127
+ $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
128
+ $vs = & $vswhere -latest -products * -property installationPath `
129
+ -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
130
+ $before = @{}
131
+ Get-ChildItem env: | ForEach-Object { $before[$_.Name] = $_.Value }
132
+ cmd /c "`"$vs\VC\Auxiliary\Build\vcvars64.bat`" >nul && set" | ForEach-Object {
133
+ if ($_ -match '^([^=]+)=(.*)$' -and $before[$matches[1]] -ne $matches[2]) {
134
+ "$($matches[1])=$($matches[2])" >> $env:GITHUB_ENV
135
+ }
136
+ }
137
+ - name: Describe the runner
138
+ run: |
139
+ python -c "import platform, sys; print(platform.platform(), platform.machine(), sys.version)"
140
+ cmake --version | head -n 1
141
+ if [ "$RUNNER_OS" = Windows ]; then cl 2>&1 | head -n 1; nvcc --version | tail -n 2;
142
+ elif [ "$RUNNER_OS" = macOS ]; then clang++ --version | head -n 1; sysctl -n machdep.cpu.brand_string;
143
+ fi
144
+ - name: Build the wheel twice in the manylinux image
145
+ if: runner.os == 'Linux'
146
+ env:
147
+ CIBW_BUILD: ${{ matrix.cibuildwheel }}
148
+ CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
149
+ CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
150
+ CIBW_BEFORE_ALL: ${{ matrix.before_all }}
151
+ CIBW_ENVIRONMENT: ${{ matrix.environment }}
152
+ CIBW_ENVIRONMENT_PASS_LINUX: SOURCE_DATE_EPOCH
153
+ CIBW_CONFIG_SETTINGS: build.verbose=true
154
+ CIBW_BUILD_VERBOSITY: '1'
155
+ run: |
156
+ python -m pip install cibuildwheel==4.3.4
157
+ python -m cibuildwheel --output-dir wheelhouse 2>&1 | tee build.log
158
+ python -m cibuildwheel --output-dir wheelhouse-again 2>&1 | tee build-again.log
159
+ - name: Build the wheel twice on the runner
160
+ if: runner.os != 'Linux'
161
+ env:
162
+ CMAKE_ARGS: ${{ matrix.cmake_args }}
163
+ CMAKE_CUDA_ARCHITECTURES: ${{ matrix.cuda_architectures }}
164
+ MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment_target }}
165
+ run: |
166
+ if [ -z "$CMAKE_CUDA_ARCHITECTURES" ]; then unset CMAKE_CUDA_ARCHITECTURES; fi
167
+ if [ -z "$MACOSX_DEPLOYMENT_TARGET" ]; then unset MACOSX_DEPLOYMENT_TARGET; fi
168
+ if [ "$RUNNER_OS" = Windows ]; then export CMAKE_GENERATOR=Ninja; fi
169
+ python -m pip install --upgrade pip ninja
170
+ python -m pip wheel . --no-deps -v -w wheelhouse -C build.verbose=true 2>&1 | tee build.log
171
+ rm -rf build
172
+ python -m pip wheel . --no-deps -v -w wheelhouse-again -C build.verbose=true 2>&1 \
173
+ | tee build-again.log
174
+ - name: Compare the two builds
175
+ run: python ci/checks/compare_builds.py wheelhouse wheelhouse-again
176
+ - name: Check the compile flags
177
+ run: |
178
+ grep -ohE "fp:precise|ffp-contract=off" build.log | sort | uniq -c
179
+ if grep -E "fp:fast|fp:contract|ffast-math|ffp-contract=(fast|on)" build.log; then
180
+ echo "a contracting or fast-math flag reached the build"; exit 1
181
+ fi
182
+ - name: Check the licenses and the libraries of the wheel
183
+ run: |
184
+ python ci/checks/check_wheel.py ${{ matrix.cpu_only && '--cpu-only' || '' }} wheelhouse/*.whl
185
+ ls -l wheelhouse
186
+ python -c "import sys, zipfile; [print(n) for n in zipfile.ZipFile(sys.argv[1]).namelist() if not n.startswith('cuju/gfootball')]" wheelhouse/*.whl
187
+ - uses: actions/upload-artifact@v7
188
+ with:
189
+ name: wheel-${{ matrix.name }}
190
+ path: wheelhouse/*.whl
191
+ - uses: actions/upload-artifact@v7
192
+ if: always()
193
+ with:
194
+ name: build-log-${{ matrix.name }}
195
+ path: build*.log
196
+
197
+ test:
198
+ name: test ${{ matrix.name }}
199
+ needs: wheel
200
+ if: ${{ !cancelled() }}
201
+ runs-on: ${{ matrix.runner }}
202
+ strategy:
203
+ fail-fast: false
204
+ matrix:
205
+ include:
206
+ - name: linux-x86-64
207
+ runner: ubuntu-24.04
208
+ torch: torch --index-url https://download.pytorch.org/whl/cpu
209
+ - name: linux-aarch64
210
+ runner: ubuntu-24.04-arm
211
+ torch: torch --index-url https://download.pytorch.org/whl/cpu
212
+ - name: windows-x86-64
213
+ runner: windows-2025
214
+ torch: torch --index-url https://download.pytorch.org/whl/cpu
215
+ - name: macos-arm64
216
+ runner: macos-15
217
+ torch: torch
218
+ # PyTorch's last x86-64 macOS wheel is 2.2.2, built against numpy 1.
219
+ - name: macos-x86-64
220
+ runner: macos-15-intel
221
+ torch: torch==2.2.2 'numpy<2'
222
+ defaults:
223
+ run:
224
+ shell: bash
225
+ env:
226
+ PIP_DISABLE_PIP_VERSION_CHECK: '1'
227
+ steps:
228
+ - uses: actions/checkout@v7
229
+ - uses: actions/setup-python@v7
230
+ with:
231
+ python-version: '3.12'
232
+ - uses: actions/download-artifact@v8
233
+ with:
234
+ name: wheel-${{ matrix.name }}
235
+ path: wheelhouse
236
+ - name: Make a new environment
237
+ run: |
238
+ python -m venv "$RUNNER_TEMP/venv"
239
+ if [ "$RUNNER_OS" = Windows ]; then
240
+ echo "VENV_PYTHON=$RUNNER_TEMP/venv/Scripts/python.exe" >> "$GITHUB_ENV"
241
+ else
242
+ echo "VENV_PYTHON=$RUNNER_TEMP/venv/bin/python" >> "$GITHUB_ENV"
243
+ fi
244
+ - name: Install PyTorch for the CPU
245
+ run: '"$VENV_PYTHON" -m pip install ${{ matrix.torch }}'
246
+ - name: Install the wheel
247
+ run: |
248
+ wheel=$(ls wheelhouse/cuju_engine-*.whl)
249
+ echo "WHEEL=$wheel" >> "$GITHUB_ENV"
250
+ "$VENV_PYTHON" -m pip install "$wheel"
251
+ "$VENV_PYTHON" -m pip list
252
+ - name: cuju.check on the CPU
253
+ working-directory: ${{ runner.temp }}
254
+ run: '"$VENV_PYTHON" -I -m cuju.check --device cpu 2>&1 | tee check.log'
255
+ - name: The public tests
256
+ working-directory: ${{ runner.temp }}
257
+ run: |
258
+ "$VENV_PYTHON" -m pip install "$GITHUB_WORKSPACE/$WHEEL[test,spaces]"
259
+ "$VENV_PYTHON" -m pytest -ra -p no:cacheprovider "$GITHUB_WORKSPACE/tests"
260
+ - uses: actions/upload-artifact@v7
261
+ if: always()
262
+ with:
263
+ name: check-${{ matrix.name }}
264
+ path: ${{ runner.temp }}/check.log
265
+ if-no-files-found: ignore
266
+
267
+ # syft reads metadata, and the code that the libraries compile in or link statically has none.
268
+ sbom:
269
+ needs: [sdist, wheel, gfootball]
270
+ uses: cuju-football/.github/.github/workflows/sbom.yml@main
271
+ with:
272
+ artifacts: '{sdist,wheel-*,cuju-gfootball}'
273
+
274
+ grf-media:
275
+ runs-on: ubuntu-24.04
276
+ env:
277
+ PIP_DISABLE_PIP_VERSION_CHECK: '1'
278
+ steps:
279
+ - uses: actions/checkout@v7
280
+ - uses: actions/checkout@v7
281
+ with:
282
+ repository: google-research/football
283
+ ref: 3d9e754720a95621bba6475c4d3b0d56fe919014
284
+ path: grf
285
+ persist-credentials: false
286
+ - uses: actions/setup-python@v7
287
+ with:
288
+ python-version: '3.12'
289
+ - name: Date every file of the build by the commit
290
+ run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"
291
+ # The converter refuses an atlas from other library versions than Ubuntu 24.04 has.
292
+ - name: Render the glyph atlas with SDL_ttf
293
+ run: |
294
+ sudo apt-get update
295
+ sudo apt-get install -y libsdl2-2.0-0 libsdl2-ttf-2.0-0 libfreetype6 libharfbuzz0b
296
+ python ci/make/make_glyph_atlas.py grf/third_party/fonts/AlegreyaSansSC-ExtraBold.ttf generated
297
+ - name: Copy GRF's media into the package
298
+ run: python ci/make/make_render_media.py grf --generated generated
299
+ - name: Build the wheel twice and compare the bytes
300
+ run: |
301
+ pip install build
302
+ python -m build --wheel --outdir grf-media packaging/cuju-grf-media
303
+ python -m build --wheel --outdir "$RUNNER_TEMP/grf-media-again" packaging/cuju-grf-media
304
+ python ci/checks/compare_builds.py grf-media "$RUNNER_TEMP/grf-media-again"
305
+ - name: Check the files and the licenses of the wheel
306
+ run: |
307
+ python ci/checks/check_wheel.py --grf-media grf-media/*.whl
308
+ ls -l grf-media
309
+ - name: Install the wheel and check the installed media
310
+ run: |
311
+ python -m venv "$RUNNER_TEMP/venv"
312
+ "$RUNNER_TEMP/venv/bin/python" -m pip install grf-media/*.whl
313
+ cd "$RUNNER_TEMP"
314
+ export PYTHONPATH="$GITHUB_WORKSPACE/python"
315
+ "$RUNNER_TEMP/venv/bin/python" -c \
316
+ "from cuju import _media; p = _media.problems(); print(_media.root()); assert not p, p"
317
+ - uses: actions/upload-artifact@v7
318
+ with:
319
+ name: grf-media
320
+ path: grf-media/*.whl
321
+
322
+ publish:
323
+ needs: [sdist, wheel, gfootball, test, sbom]
324
+ if: >-
325
+ github.event_name == 'workflow_dispatch' && inputs.publish
326
+ && startsWith(github.ref, 'refs/tags/v')
327
+ runs-on: ubuntu-24.04
328
+ # The environment requires a maintainer's approval before anything is published.
329
+ environment: pypi
330
+ permissions:
331
+ contents: read
332
+ id-token: write
333
+ steps:
334
+ - uses: actions/checkout@v7
335
+ - name: Check that the tag names the version of the package
336
+ run: |
337
+ version=$(python3 -c "import runpy; print(runpy.run_path('python/cuju/_version.py')['__version__'])")
338
+ if [ "$GITHUB_REF_NAME" != "v$version" ]; then
339
+ echo "the tag $GITHUB_REF_NAME names another version than __version__ $version"
340
+ exit 1
341
+ fi
342
+ - uses: actions/download-artifact@v8
343
+ with:
344
+ path: dist
345
+ pattern: '{sdist,wheel-*}'
346
+ merge-multiple: true
347
+ - uses: pypa/gh-action-pypi-publish@release/v1
348
+
349
+ # Uploads only when PyPI lacks the version, and any answer but found or missing stops the job.
350
+ publish-gfootball:
351
+ needs: [gfootball, publish]
352
+ if: >-
353
+ github.event_name == 'workflow_dispatch' && inputs.publish
354
+ && startsWith(github.ref, 'refs/tags/v')
355
+ runs-on: ubuntu-24.04
356
+ environment: pypi-gfootball
357
+ permissions:
358
+ contents: read
359
+ id-token: write
360
+ steps:
361
+ - uses: actions/checkout@v7
362
+ with:
363
+ persist-credentials: false
364
+ - name: Check that the tag names the version of the package
365
+ run: |
366
+ version=$(python3 -c "import runpy; print(runpy.run_path('python/cuju/_version.py')['__version__'])")
367
+ if [ "$GITHUB_REF_NAME" != "v$version" ]; then
368
+ echo "the tag $GITHUB_REF_NAME names another version than __version__ $version"
369
+ exit 1
370
+ fi
371
+ - uses: actions/download-artifact@v8
372
+ with:
373
+ name: cuju-gfootball
374
+ path: dist
375
+ - name: Upload cuju-gfootball only where PyPI lacks its version
376
+ id: pypi
377
+ run: |
378
+ version=$(python3 -c "import runpy; print(runpy.run_path('packages/cuju-gfootball/src/cuju/gfootball_alias/_version.py')['__version__'])")
379
+ status=$(curl -s -o /dev/null -w '%{http_code}' "https://pypi.org/pypi/cuju-gfootball/$version/json")
380
+ case "$status" in
381
+ 200) echo "cuju-gfootball $version is on PyPI, so nothing uploads"; echo "upload=false" >> "$GITHUB_OUTPUT" ;;
382
+ 404) echo "cuju-gfootball $version is new and uploads"; echo "upload=true" >> "$GITHUB_OUTPUT" ;;
383
+ *) echo "PyPI answered $status for cuju-gfootball $version"; exit 1 ;;
384
+ esac
385
+ ls -l dist
386
+ - uses: pypa/gh-action-pypi-publish@release/v1
387
+ if: steps.pypi.outputs.upload == 'true'
388
+
389
+ # Uploads only when PyPI lacks the version, and any answer but found or missing stops the job.
390
+ publish-grf-media:
391
+ needs: [grf-media]
392
+ if: >-
393
+ github.event_name == 'workflow_dispatch' && inputs.publish
394
+ && startsWith(github.ref, 'refs/tags/v')
395
+ runs-on: ubuntu-24.04
396
+ environment: pypi-grf-media
397
+ permissions:
398
+ contents: read
399
+ id-token: write
400
+ steps:
401
+ - uses: actions/checkout@v7
402
+ with:
403
+ persist-credentials: false
404
+ - name: Check that the tag names the version of the package
405
+ run: |
406
+ version=$(python3 -c "import runpy; print(runpy.run_path('python/cuju/_version.py')['__version__'])")
407
+ if [ "$GITHUB_REF_NAME" != "v$version" ]; then
408
+ echo "the tag $GITHUB_REF_NAME names another version than __version__ $version"
409
+ exit 1
410
+ fi
411
+ - uses: actions/download-artifact@v8
412
+ with:
413
+ name: grf-media
414
+ path: dist
415
+ - name: Upload cuju-grf-media only where PyPI lacks its version
416
+ id: pypi
417
+ run: |
418
+ version=$(python3 -c "import runpy; print(runpy.run_path('packaging/cuju-grf-media/src/cuju/grf_media/__init__.py')['__version__'])")
419
+ status=$(curl -s -o /dev/null -w '%{http_code}' "https://pypi.org/pypi/cuju-grf-media/$version/json")
420
+ case "$status" in
421
+ 200) echo "cuju-grf-media $version is on PyPI, so nothing uploads"; echo "upload=false" >> "$GITHUB_OUTPUT" ;;
422
+ 404) echo "cuju-grf-media $version is new and uploads"; echo "upload=true" >> "$GITHUB_OUTPUT" ;;
423
+ *) echo "PyPI answered $status for cuju-grf-media $version"; exit 1 ;;
424
+ esac
425
+ ls -l dist
426
+ - uses: pypa/gh-action-pypi-publish@release/v1
427
+ if: steps.pypi.outputs.upload == 'true'