cuju-engine 0.3.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 (534) hide show
  1. cuju_engine-0.3.0/.clang-format +17 -0
  2. cuju_engine-0.3.0/.dockerignore +5 -0
  3. cuju_engine-0.3.0/.gitattributes +4 -0
  4. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/bug.yml +27 -0
  5. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/config.yml +8 -0
  6. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/difference.yml +58 -0
  7. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/grf-feature.yml +20 -0
  8. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/install.yml +30 -0
  9. cuju_engine-0.3.0/.github/ISSUE_TEMPLATE/performance.yml +22 -0
  10. cuju_engine-0.3.0/.github/pull_request_template.md +6 -0
  11. cuju_engine-0.3.0/.github/workflows/ci.yml +124 -0
  12. cuju_engine-0.3.0/.github/workflows/release.yml +492 -0
  13. cuju_engine-0.3.0/.gitignore +7 -0
  14. cuju_engine-0.3.0/CHANGELOG.md +437 -0
  15. cuju_engine-0.3.0/CITATION.cff +60 -0
  16. cuju_engine-0.3.0/CMakeLists.txt +296 -0
  17. cuju_engine-0.3.0/CODE_OF_CONDUCT.md +119 -0
  18. cuju_engine-0.3.0/CONTRIBUTING.md +107 -0
  19. cuju_engine-0.3.0/Dockerfile +43 -0
  20. cuju_engine-0.3.0/LICENSE +202 -0
  21. cuju_engine-0.3.0/LICENSES/BSD-3-Clause.txt +31 -0
  22. cuju_engine-0.3.0/LICENSES/BSL-1.0.txt +23 -0
  23. cuju_engine-0.3.0/LICENSES/CC-BY-4.0.txt +396 -0
  24. cuju_engine-0.3.0/LICENSES/LGPL-2.1-or-later.txt +502 -0
  25. cuju_engine-0.3.0/LICENSES/MIT-Mesa.txt +26 -0
  26. cuju_engine-0.3.0/LICENSES/MIT-gym.txt +23 -0
  27. cuju_engine-0.3.0/LICENSES/MIT.txt +23 -0
  28. cuju_engine-0.3.0/LICENSES/OFL-1.1.txt +93 -0
  29. cuju_engine-0.3.0/LICENSES/SunPro.txt +8 -0
  30. cuju_engine-0.3.0/LICENSES/Unlicense.txt +24 -0
  31. cuju_engine-0.3.0/LICENSES/Zlib.txt +20 -0
  32. cuju_engine-0.3.0/NOTICE +56 -0
  33. cuju_engine-0.3.0/PKG-INFO +325 -0
  34. cuju_engine-0.3.0/README.md +270 -0
  35. cuju_engine-0.3.0/SECURITY.md +46 -0
  36. cuju_engine-0.3.0/apptainer.def +39 -0
  37. cuju_engine-0.3.0/ci/check_links.py +368 -0
  38. cuju_engine-0.3.0/ci/check_wheel.py +204 -0
  39. cuju_engine-0.3.0/ci/compare_builds.py +129 -0
  40. cuju_engine-0.3.0/ci/cpu_only.py +43 -0
  41. cuju_engine-0.3.0/ci/data_checksums.py +27 -0
  42. cuju_engine-0.3.0/ci/install_cuda.sh +33 -0
  43. cuju_engine-0.3.0/ci/make_glyph_atlas.py +651 -0
  44. cuju_engine-0.3.0/ci/make_render_media.py +285 -0
  45. cuju_engine-0.3.0/ci/port_gfootball.py +381 -0
  46. cuju_engine-0.3.0/docs/api.md +631 -0
  47. cuju_engine-0.3.0/docs/backends.md +409 -0
  48. cuju_engine-0.3.0/docs/concepts.md +145 -0
  49. cuju_engine-0.3.0/docs/custom-scenarios.md +163 -0
  50. cuju_engine-0.3.0/docs/differences-from-grf.md +299 -0
  51. cuju_engine-0.3.0/docs/episodes-and-seeds.md +254 -0
  52. cuju_engine-0.3.0/docs/exactness.md +285 -0
  53. cuju_engine-0.3.0/docs/faq.md +245 -0
  54. cuju_engine-0.3.0/docs/index.md +152 -0
  55. cuju_engine-0.3.0/docs/installation.md +550 -0
  56. cuju_engine-0.3.0/docs/migrating-from-grf.md +765 -0
  57. cuju_engine-0.3.0/docs/observations.md +382 -0
  58. cuju_engine-0.3.0/docs/performance.md +295 -0
  59. cuju_engine-0.3.0/docs/recipes.md +435 -0
  60. cuju_engine-0.3.0/docs/rendering.md +714 -0
  61. cuju_engine-0.3.0/docs/rewards-and-actions.md +201 -0
  62. cuju_engine-0.3.0/docs/scenarios.md +184 -0
  63. cuju_engine-0.3.0/docs/states.md +256 -0
  64. cuju_engine-0.3.0/examples/README.md +65 -0
  65. cuju_engine-0.3.0/examples/benchmark.py +110 -0
  66. cuju_engine-0.3.0/examples/compare_with_grf.py +390 -0
  67. cuju_engine-0.3.0/examples/cuda_graph_step.py +59 -0
  68. cuju_engine-0.3.0/examples/cuju_quickstart.ipynb +633 -0
  69. cuju_engine-0.3.0/examples/dumps.py +92 -0
  70. cuju_engine-0.3.0/examples/evaluate.py +116 -0
  71. cuju_engine-0.3.0/examples/kaggle_agent.py +73 -0
  72. cuju_engine-0.3.0/examples/mixed_batch.py +57 -0
  73. cuju_engine-0.3.0/examples/multi_gpu.py +91 -0
  74. cuju_engine-0.3.0/examples/ppo.py +285 -0
  75. cuju_engine-0.3.0/examples/random_rollout.py +57 -0
  76. cuju_engine-0.3.0/examples/self_play.py +131 -0
  77. cuju_engine-0.3.0/examples/states.py +138 -0
  78. cuju_engine-0.3.0/include/cuju/ai_time.h +409 -0
  79. cuju_engine-0.3.0/include/cuju/animation/animation_data.h +307 -0
  80. cuju_engine-0.3.0/include/cuju/animation/animation_derived.h +168 -0
  81. cuju_engine-0.3.0/include/cuju/animation/apply.h +367 -0
  82. cuju_engine-0.3.0/include/cuju/animation/keyframes.h +194 -0
  83. cuju_engine-0.3.0/include/cuju/animation/skeleton.h +238 -0
  84. cuju_engine-0.3.0/include/cuju/assets/scenario_builder.h +801 -0
  85. cuju_engine-0.3.0/include/cuju/ball.h +348 -0
  86. cuju_engine-0.3.0/include/cuju/batch/agent_setup.h +164 -0
  87. cuju_engine-0.3.0/include/cuju/batch/batch_core.h +866 -0
  88. cuju_engine-0.3.0/include/cuju/batch/batch_environment.h +778 -0
  89. cuju_engine-0.3.0/include/cuju/batch/memory_estimate.h +72 -0
  90. cuju_engine-0.3.0/include/cuju/batch/render_states.h +63 -0
  91. cuju_engine-0.3.0/include/cuju/batch/stacked_state.h +82 -0
  92. cuju_engine-0.3.0/include/cuju/batch/state_difference.h +128 -0
  93. cuju_engine-0.3.0/include/cuju/batch/tables.h +93 -0
  94. cuju_engine-0.3.0/include/cuju/cpu/batch_environment.h +467 -0
  95. cuju_engine-0.3.0/include/cuju/cpu/job_thread.h +121 -0
  96. cuju_engine-0.3.0/include/cuju/cpu/placement.h +214 -0
  97. cuju_engine-0.3.0/include/cuju/cpu/processors.h +152 -0
  98. cuju_engine-0.3.0/include/cuju/engine/engine_info.h +95 -0
  99. cuju_engine-0.3.0/include/cuju/engine/game_engine.h +782 -0
  100. cuju_engine-0.3.0/include/cuju/file_path.h +24 -0
  101. cuju_engine-0.3.0/include/cuju/floating_point.h +60 -0
  102. cuju_engine-0.3.0/include/cuju/game_definitions.h +36 -0
  103. cuju_engine-0.3.0/include/cuju/gpu/batch_environment.cuh +247 -0
  104. cuju_engine-0.3.0/include/cuju/gpu/device_data.h +138 -0
  105. cuju_engine-0.3.0/include/cuju/host_device.h +46 -0
  106. cuju_engine-0.3.0/include/cuju/inline_vector.h +95 -0
  107. cuju_engine-0.3.0/include/cuju/libm/acos_double.h +143 -0
  108. cuju_engine-0.3.0/include/cuju/libm/asinf.h +95 -0
  109. cuju_engine-0.3.0/include/cuju/libm/common.h +120 -0
  110. cuju_engine-0.3.0/include/cuju/libm/inverse_trigonometric_float.h +272 -0
  111. cuju_engine-0.3.0/include/cuju/libm/pow.h +651 -0
  112. cuju_engine-0.3.0/include/cuju/libm/powf.h +198 -0
  113. cuju_engine-0.3.0/include/cuju/libm/sin_double.h +266 -0
  114. cuju_engine-0.3.0/include/cuju/libm/sincos_double.h +19 -0
  115. cuju_engine-0.3.0/include/cuju/libm/sincosf.h +212 -0
  116. cuju_engine-0.3.0/include/cuju/libm/tan_double.h +285 -0
  117. cuju_engine-0.3.0/include/cuju/libm/tanf.h +136 -0
  118. cuju_engine-0.3.0/include/cuju/libm/trigonometric_double.h +8 -0
  119. cuju_engine-0.3.0/include/cuju/libm/trigonometric_tables_double.h +1408 -0
  120. cuju_engine-0.3.0/include/cuju/math_utilities.h +41 -0
  121. cuju_engine-0.3.0/include/cuju/nvtx.h +44 -0
  122. cuju_engine-0.3.0/include/cuju/possession.h +123 -0
  123. cuju_engine-0.3.0/include/cuju/profiling.h +70 -0
  124. cuju_engine-0.3.0/include/cuju/quaternion.h +286 -0
  125. cuju_engine-0.3.0/include/cuju/real_to_string.h +53 -0
  126. cuju_engine-0.3.0/include/cuju/render/extract_render_state.h +311 -0
  127. cuju_engine-0.3.0/include/cuju/render/render_state.h +168 -0
  128. cuju_engine-0.3.0/include/cuju/rng.h +115 -0
  129. cuju_engine-0.3.0/include/cuju/simulation/access.h +65 -0
  130. cuju_engine-0.3.0/include/cuju/simulation/ai_controller.h +2509 -0
  131. cuju_engine-0.3.0/include/cuju/simulation/ai_functions.h +190 -0
  132. cuju_engine-0.3.0/include/cuju/simulation/ball_touch.h +143 -0
  133. cuju_engine-0.3.0/include/cuju/simulation/camera.h +170 -0
  134. cuju_engine-0.3.0/include/cuju/simulation/collisions.h +619 -0
  135. cuju_engine-0.3.0/include/cuju/simulation/containers.h +26 -0
  136. cuju_engine-0.3.0/include/cuju/simulation/enumerations.h +64 -0
  137. cuju_engine-0.3.0/include/cuju/simulation/environment.h +619 -0
  138. cuju_engine-0.3.0/include/cuju/simulation/geometry_offsets.h +200 -0
  139. cuju_engine-0.3.0/include/cuju/simulation/human_controller.h +117 -0
  140. cuju_engine-0.3.0/include/cuju/simulation/humanoid.h +425 -0
  141. cuju_engine-0.3.0/include/cuju/simulation/humanoid_process.h +682 -0
  142. cuju_engine-0.3.0/include/cuju/simulation/match_process.h +392 -0
  143. cuju_engine-0.3.0/include/cuju/simulation/observation_encoding.h +182 -0
  144. cuju_engine-0.3.0/include/cuju/simulation/officials.h +400 -0
  145. cuju_engine-0.3.0/include/cuju/simulation/player_controller.h +248 -0
  146. cuju_engine-0.3.0/include/cuju/simulation/player_possession.h +126 -0
  147. cuju_engine-0.3.0/include/cuju/simulation/referee.h +356 -0
  148. cuju_engine-0.3.0/include/cuju/simulation/render_mode.h +196 -0
  149. cuju_engine-0.3.0/include/cuju/simulation/reset.h +731 -0
  150. cuju_engine-0.3.0/include/cuju/simulation/select_animation.h +2828 -0
  151. cuju_engine-0.3.0/include/cuju/simulation/state_io.h +94 -0
  152. cuju_engine-0.3.0/include/cuju/simulation/static_data.h +108 -0
  153. cuju_engine-0.3.0/include/cuju/simulation/team_ai.h +533 -0
  154. cuju_engine-0.3.0/include/cuju/simulation/team_process.h +320 -0
  155. cuju_engine-0.3.0/include/cuju/simulation/team_select.h +207 -0
  156. cuju_engine-0.3.0/include/cuju/simulation/touch.h +400 -0
  157. cuju_engine-0.3.0/include/cuju/simulation/world.h +264 -0
  158. cuju_engine-0.3.0/include/cuju/span.h +27 -0
  159. cuju_engine-0.3.0/include/cuju/state/archive.h +195 -0
  160. cuju_engine-0.3.0/include/cuju/state/environment_state.h +892 -0
  161. cuju_engine-0.3.0/include/cuju/vector3.h +232 -0
  162. cuju_engine-0.3.0/include/cuju/warp.h +252 -0
  163. cuju_engine-0.3.0/include/cuju/work_area.h +99 -0
  164. cuju_engine-0.3.0/include/cuju/x86.h +35 -0
  165. cuju_engine-0.3.0/packages/cuju-gfootball/LICENSE +202 -0
  166. cuju_engine-0.3.0/packages/cuju-gfootball/README.md +78 -0
  167. cuju_engine-0.3.0/packages/cuju-gfootball/pyproject.toml +50 -0
  168. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/__init__.py +28 -0
  169. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/__main__.py +10 -0
  170. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/_startup.py +224 -0
  171. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball/_version.py +5 -0
  172. cuju_engine-0.3.0/packages/cuju-gfootball/src/cuju_gfootball.pth +1 -0
  173. cuju_engine-0.3.0/packaging/cuju-grf-media/.gitignore +7 -0
  174. cuju_engine-0.3.0/packaging/cuju-grf-media/NOTICE +31 -0
  175. cuju_engine-0.3.0/packaging/cuju-grf-media/README.md +18 -0
  176. cuju_engine-0.3.0/packaging/cuju-grf-media/pyproject.toml +39 -0
  177. cuju_engine-0.3.0/packaging/cuju-grf-media/sources.txt +113 -0
  178. cuju_engine-0.3.0/packaging/cuju-grf-media/src/cuju_grf_media/__init__.py +9 -0
  179. cuju_engine-0.3.0/pyproject.toml +139 -0
  180. cuju_engine-0.3.0/python/cuju/__init__.py +217 -0
  181. cuju_engine-0.3.0/python/cuju/__main__.py +262 -0
  182. cuju_engine-0.3.0/python/cuju/_batch/__init__.py +4 -0
  183. cuju_engine-0.3.0/python/cuju/_batch/allocator.py +52 -0
  184. cuju_engine-0.3.0/python/cuju/_batch/assets.py +68 -0
  185. cuju_engine-0.3.0/python/cuju/_batch/environment.py +1890 -0
  186. cuju_engine-0.3.0/python/cuju/_batch/frame_stack.py +114 -0
  187. cuju_engine-0.3.0/python/cuju/_batch/library.py +190 -0
  188. cuju_engine-0.3.0/python/cuju/_batch/log.py +103 -0
  189. cuju_engine-0.3.0/python/cuju/_batch/memory.py +70 -0
  190. cuju_engine-0.3.0/python/cuju/_batch/operators.py +55 -0
  191. cuju_engine-0.3.0/python/cuju/_batch/pinned.py +39 -0
  192. cuju_engine-0.3.0/python/cuju/_batch/pixels.py +207 -0
  193. cuju_engine-0.3.0/python/cuju/_batch/state.py +77 -0
  194. cuju_engine-0.3.0/python/cuju/_checksums.py +60 -0
  195. cuju_engine-0.3.0/python/cuju/_cli_contract.py +244 -0
  196. cuju_engine-0.3.0/python/cuju/_cli_parsers.py +191 -0
  197. cuju_engine-0.3.0/python/cuju/_completion.py +277 -0
  198. cuju_engine-0.3.0/python/cuju/_dump_to_txt.py +66 -0
  199. cuju_engine-0.3.0/python/cuju/_grf_config.py +331 -0
  200. cuju_engine-0.3.0/python/cuju/_library_path.py +141 -0
  201. cuju_engine-0.3.0/python/cuju/_media.py +113 -0
  202. cuju_engine-0.3.0/python/cuju/_pixels.py +276 -0
  203. cuju_engine-0.3.0/python/cuju/_plugins.py +106 -0
  204. cuju_engine-0.3.0/python/cuju/_python_players.py +224 -0
  205. cuju_engine-0.3.0/python/cuju/_replay_command.py +109 -0
  206. cuju_engine-0.3.0/python/cuju/_replay_player.py +42 -0
  207. cuju_engine-0.3.0/python/cuju/_replays.py +414 -0
  208. cuju_engine-0.3.0/python/cuju/_script_helpers.py +109 -0
  209. cuju_engine-0.3.0/python/cuju/_version.py +6 -0
  210. cuju_engine-0.3.0/python/cuju/action_log.py +371 -0
  211. cuju_engine-0.3.0/python/cuju/check.py +596 -0
  212. cuju_engine-0.3.0/python/cuju/data/SHA256SUMS +20 -0
  213. cuju_engine-0.3.0/python/cuju/data/animations.bin +0 -0
  214. cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_competition_l0_r0.cjb +0 -0
  215. cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_easy_stochastic_l0_r0.cjb +0 -0
  216. cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_hard_stochastic_l0_r0.cjb +0 -0
  217. cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_kaggle_l0_r0.cjb +0 -0
  218. cuju_engine-0.3.0/python/cuju/data/assets/11_vs_11_stochastic_l0_r0.cjb +0 -0
  219. cuju_engine-0.3.0/python/cuju/data/assets/1_vs_1_easy_l0_r0.cjb +0 -0
  220. cuju_engine-0.3.0/python/cuju/data/assets/5_vs_5_l0_r0.cjb +0 -0
  221. cuju_engine-0.3.0/python/cuju/data/assets/academy_3_vs_1_with_keeper_l0_r0.cjb +0 -0
  222. cuju_engine-0.3.0/python/cuju/data/assets/academy_corner_l0_r0.cjb +0 -0
  223. cuju_engine-0.3.0/python/cuju/data/assets/academy_counterattack_easy_l0_r0.cjb +0 -0
  224. cuju_engine-0.3.0/python/cuju/data/assets/academy_counterattack_hard_l0_r0.cjb +0 -0
  225. cuju_engine-0.3.0/python/cuju/data/assets/academy_empty_goal_close_l0_r0.cjb +0 -0
  226. cuju_engine-0.3.0/python/cuju/data/assets/academy_empty_goal_l0_r0.cjb +0 -0
  227. cuju_engine-0.3.0/python/cuju/data/assets/academy_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
  228. cuju_engine-0.3.0/python/cuju/data/assets/academy_run_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
  229. cuju_engine-0.3.0/python/cuju/data/assets/academy_run_to_score_l0_r0.cjb +0 -0
  230. cuju_engine-0.3.0/python/cuju/data/assets/academy_run_to_score_with_keeper_l0_r0.cjb +0 -0
  231. cuju_engine-0.3.0/python/cuju/data/assets/academy_single_goal_versus_lazy_l0_r0.cjb +0 -0
  232. cuju_engine-0.3.0/python/cuju/data/assets/test_example_multiagent_l0_r0.cjb +0 -0
  233. cuju_engine-0.3.0/python/cuju/data/digests.json +186 -0
  234. cuju_engine-0.3.0/python/cuju/data/render_digests.json.z +0 -0
  235. cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_competition.py +45 -0
  236. cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_easy_stochastic.py +44 -0
  237. cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_hard_stochastic.py +44 -0
  238. cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_kaggle.py +46 -0
  239. cuju_engine-0.3.0/python/cuju/data/scenarios/11_vs_11_stochastic.py +44 -0
  240. cuju_engine-0.3.0/python/cuju/data/scenarios/1_vs_1_easy.py +25 -0
  241. cuju_engine-0.3.0/python/cuju/data/scenarios/5_vs_5.py +33 -0
  242. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_3_vs_1_with_keeper.py +28 -0
  243. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_corner.py +45 -0
  244. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_counterattack_easy.py +45 -0
  245. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_counterattack_hard.py +45 -0
  246. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_empty_goal.py +25 -0
  247. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_empty_goal_close.py +25 -0
  248. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_pass_and_shoot_with_keeper.py +27 -0
  249. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_run_pass_and_shoot_with_keeper.py +27 -0
  250. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_run_to_score.py +30 -0
  251. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_run_to_score_with_keeper.py +30 -0
  252. cuju_engine-0.3.0/python/cuju/data/scenarios/academy_single_goal_versus_lazy.py +49 -0
  253. cuju_engine-0.3.0/python/cuju/data/scenarios/test_example_multiagent.py +28 -0
  254. cuju_engine-0.3.0/python/cuju/dumps.py +942 -0
  255. cuju_engine-0.3.0/python/cuju/engine_status.py +106 -0
  256. cuju_engine-0.3.0/python/cuju/env.py +1168 -0
  257. cuju_engine-0.3.0/python/cuju/errors.py +108 -0
  258. cuju_engine-0.3.0/python/cuju/gfootball/GRF_SOURCES +86 -0
  259. cuju_engine-0.3.0/python/cuju/gfootball/__init__.py +60 -0
  260. cuju_engine-0.3.0/python/cuju/gfootball/_cv2.py +43 -0
  261. cuju_engine-0.3.0/python/cuju/gfootball/_gym/__init__.py +88 -0
  262. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/GYM_SOURCES +22 -0
  263. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/__init__.py +43 -0
  264. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/core.py +361 -0
  265. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/envs/__init__.py +19 -0
  266. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/envs/registration.py +284 -0
  267. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/error.py +230 -0
  268. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/logger.py +56 -0
  269. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/__init__.py +30 -0
  270. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/box.py +171 -0
  271. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/dict.py +162 -0
  272. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/discrete.py +41 -0
  273. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_binary.py +61 -0
  274. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/multi_discrete.py +77 -0
  275. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/space.py +94 -0
  276. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/tuple.py +96 -0
  277. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/spaces/utils.py +228 -0
  278. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/__init__.py +13 -0
  279. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/closer.py +72 -0
  280. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/colorize.py +36 -0
  281. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/ezpickle.py +37 -0
  282. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/json_utils.py +27 -0
  283. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/utils/seeding.py +101 -0
  284. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/version.py +5 -0
  285. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/__init__.py +8 -0
  286. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/order_enforcing.py +20 -0
  287. cuju_engine-0.3.0/python/cuju/gfootball/_gym/_vendored/wrappers/time_limit.py +31 -0
  288. cuju_engine-0.3.0/python/cuju/gfootball/dump_to_txt.py +49 -0
  289. cuju_engine-0.3.0/python/cuju/gfootball/dump_to_video.py +33 -0
  290. cuju_engine-0.3.0/python/cuju/gfootball/env/__init__.py +271 -0
  291. cuju_engine-0.3.0/python/cuju/gfootball/env/config.py +163 -0
  292. cuju_engine-0.3.0/python/cuju/gfootball/env/constants.py +33 -0
  293. cuju_engine-0.3.0/python/cuju/gfootball/env/controller_base.py +114 -0
  294. cuju_engine-0.3.0/python/cuju/gfootball/env/event_queue.py +54 -0
  295. cuju_engine-0.3.0/python/cuju/gfootball/env/football_action_set.py +220 -0
  296. cuju_engine-0.3.0/python/cuju/gfootball/env/football_action_set_test.py +76 -0
  297. cuju_engine-0.3.0/python/cuju/gfootball/env/football_env.py +225 -0
  298. cuju_engine-0.3.0/python/cuju/gfootball/env/football_env_core.py +447 -0
  299. cuju_engine-0.3.0/python/cuju/gfootball/env/football_env_test.py +692 -0
  300. cuju_engine-0.3.0/python/cuju/gfootball/env/gym_test.py +47 -0
  301. cuju_engine-0.3.0/python/cuju/gfootball/env/observation_preprocessing.py +94 -0
  302. cuju_engine-0.3.0/python/cuju/gfootball/env/observation_processor.py +526 -0
  303. cuju_engine-0.3.0/python/cuju/gfootball/env/observation_rotation.py +163 -0
  304. cuju_engine-0.3.0/python/cuju/gfootball/env/observation_rotation_test.py +84 -0
  305. cuju_engine-0.3.0/python/cuju/gfootball/env/player_base.py +46 -0
  306. cuju_engine-0.3.0/python/cuju/gfootball/env/players/__init__.py +16 -0
  307. cuju_engine-0.3.0/python/cuju/gfootball/env/players/agent.py +39 -0
  308. cuju_engine-0.3.0/python/cuju/gfootball/env/players/bot.py +217 -0
  309. cuju_engine-0.3.0/python/cuju/gfootball/env/players/gamepad.py +81 -0
  310. cuju_engine-0.3.0/python/cuju/gfootball/env/players/keyboard.py +72 -0
  311. cuju_engine-0.3.0/python/cuju/gfootball/env/players/lazy.py +31 -0
  312. cuju_engine-0.3.0/python/cuju/gfootball/env/players/ppo2_cnn.py +119 -0
  313. cuju_engine-0.3.0/python/cuju/gfootball/env/players/replay.py +40 -0
  314. cuju_engine-0.3.0/python/cuju/gfootball/env/remote_football_env.py +189 -0
  315. cuju_engine-0.3.0/python/cuju/gfootball/env/scenario_builder.py +125 -0
  316. cuju_engine-0.3.0/python/cuju/gfootball/env/script_helpers.py +130 -0
  317. cuju_engine-0.3.0/python/cuju/gfootball/env/script_helpers_test.py +107 -0
  318. cuju_engine-0.3.0/python/cuju/gfootball/env/wrappers.py +440 -0
  319. cuju_engine-0.3.0/python/cuju/gfootball/env/wrappers_test.py +150 -0
  320. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/__init__.py +17 -0
  321. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/config.py +30 -0
  322. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/example_client.py +107 -0
  323. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server.proto +62 -0
  324. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server_pb2.py +501 -0
  325. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/game_server_pb2_grpc.py +113 -0
  326. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master.proto +25 -0
  327. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master_pb2.py +184 -0
  328. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/proto/master_pb2_grpc.py +62 -0
  329. cuju_engine-0.3.0/python/cuju/gfootball/eval_server/utils.py +52 -0
  330. cuju_engine-0.3.0/python/cuju/gfootball/examples/__init__.py +16 -0
  331. cuju_engine-0.3.0/python/cuju/gfootball/examples/models.py +66 -0
  332. cuju_engine-0.3.0/python/cuju/gfootball/examples/run_multiagent_rllib.py +140 -0
  333. cuju_engine-0.3.0/python/cuju/gfootball/examples/run_ppo2.py +123 -0
  334. cuju_engine-0.3.0/python/cuju/gfootball/play_game.py +73 -0
  335. cuju_engine-0.3.0/python/cuju/gfootball/replay.py +43 -0
  336. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_competition.py +59 -0
  337. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_easy_stochastic.py +57 -0
  338. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_hard_stochastic.py +57 -0
  339. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_kaggle.py +60 -0
  340. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/11_vs_11_stochastic.py +57 -0
  341. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/1_vs_1_easy.py +39 -0
  342. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/5_vs_5.py +46 -0
  343. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/__init__.py +31 -0
  344. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_3_vs_1_with_keeper.py +42 -0
  345. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_corner.py +59 -0
  346. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_counterattack_easy.py +59 -0
  347. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_counterattack_hard.py +59 -0
  348. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_empty_goal.py +39 -0
  349. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_empty_goal_close.py +39 -0
  350. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_pass_and_shoot_with_keeper.py +41 -0
  351. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_pass_and_shoot_with_keeper.py +41 -0
  352. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_to_score.py +44 -0
  353. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_run_to_score_with_keeper.py +44 -0
  354. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/academy_single_goal_versus_lazy.py +63 -0
  355. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/test_example_multiagent.py +42 -0
  356. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_deterministic.py +58 -0
  357. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_easy_deterministic.py +58 -0
  358. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_hard_deterministic.py +58 -0
  359. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_deterministic.py +58 -0
  360. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_11_single_goal_stochastic.py +58 -0
  361. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_deterministic.py +47 -0
  362. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/11_vs_4_offence_stochastic.py +47 -0
  363. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/__init__.py +31 -0
  364. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/corner_test.py +38 -0
  365. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/goal_test.py +35 -0
  366. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/keeper_test.py +38 -0
  367. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/kickoff_for_goal_loosing_team_test.py +34 -0
  368. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/multiagent_wrapper.py +60 -0
  369. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/offside_test.py +39 -0
  370. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/penalty.py +34 -0
  371. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/second_half.py +33 -0
  372. cuju_engine-0.3.0/python/cuju/gfootball/scenarios/tests/symmetric.py +53 -0
  373. cuju_engine-0.3.0/python/cuju/gfootball_engine/__init__.py +31 -0
  374. cuju_engine-0.3.0/python/cuju/gfootball_engine/_gameplayfootball.py +1624 -0
  375. cuju_engine-0.3.0/python/cuju/gfootball_engine/_native.py +193 -0
  376. cuju_engine-0.3.0/python/cuju/gfootball_engine/_pickle_names.py +114 -0
  377. cuju_engine-0.3.0/python/cuju/gfootball_engine/_render_hooks.py +156 -0
  378. cuju_engine-0.3.0/python/cuju/kaggle.py +425 -0
  379. cuju_engine-0.3.0/python/cuju/multi_device.py +401 -0
  380. cuju_engine-0.3.0/python/cuju/players.py +260 -0
  381. cuju_engine-0.3.0/python/cuju/raw.py +93 -0
  382. cuju_engine-0.3.0/python/cuju/scenarios.py +661 -0
  383. cuju_engine-0.3.0/python/cuju/state.py +211 -0
  384. cuju_engine-0.3.0/python/cuju/wrappers.py +325 -0
  385. cuju_engine-0.3.0/src/cuju_cpu.cpp +39 -0
  386. cuju_engine-0.3.0/src/cuju_cuda.cu +14 -0
  387. cuju_engine-0.3.0/src/engine_api.h +487 -0
  388. cuju_engine-0.3.0/src/environment_api.h +623 -0
  389. cuju_engine-0.3.0/src/environment_state.cpp +103 -0
  390. cuju_engine-0.3.0/src/render/CMakeLists.txt +39 -0
  391. cuju_engine-0.3.0/src/render/assets/ase.cpp +368 -0
  392. cuju_engine-0.3.0/src/render/assets/assets.h +147 -0
  393. cuju_engine-0.3.0/src/render/assets/geometry.cpp +185 -0
  394. cuju_engine-0.3.0/src/render/assets/object.cpp +202 -0
  395. cuju_engine-0.3.0/src/render/assets/surface.cpp +58 -0
  396. cuju_engine-0.3.0/src/render/assets/text.cpp +108 -0
  397. cuju_engine-0.3.0/src/render/assets/text.h +40 -0
  398. cuju_engine-0.3.0/src/render/fpenv.cpp +188 -0
  399. cuju_engine-0.3.0/src/render/fpenv.h +225 -0
  400. cuju_engine-0.3.0/src/render/frame.cpp +531 -0
  401. cuju_engine-0.3.0/src/render/frame.h +172 -0
  402. cuju_engine-0.3.0/src/render/gl/context.cpp +911 -0
  403. cuju_engine-0.3.0/src/render/gl/context.h +294 -0
  404. cuju_engine-0.3.0/src/render/gl/draw.cpp +566 -0
  405. cuju_engine-0.3.0/src/render/gl/fragment.cpp +424 -0
  406. cuju_engine-0.3.0/src/render/gl/fragment.h +131 -0
  407. cuju_engine-0.3.0/src/render/gl/mip_cache.cpp +95 -0
  408. cuju_engine-0.3.0/src/render/gl/mip_cache.h +49 -0
  409. cuju_engine-0.3.0/src/render/gl/pipeline.h +241 -0
  410. cuju_engine-0.3.0/src/render/gl/program.cpp +118 -0
  411. cuju_engine-0.3.0/src/render/gl/program.h +189 -0
  412. cuju_engine-0.3.0/src/render/gl/scene.cpp +868 -0
  413. cuju_engine-0.3.0/src/render/gl/setup.cpp +388 -0
  414. cuju_engine-0.3.0/src/render/lanes.h +480 -0
  415. cuju_engine-0.3.0/src/render/mipmap.cpp +286 -0
  416. cuju_engine-0.3.0/src/render/mipmap.h +31 -0
  417. cuju_engine-0.3.0/src/render/numerics.h +116 -0
  418. cuju_engine-0.3.0/src/render/overlay2d/atlas.cpp +262 -0
  419. cuju_engine-0.3.0/src/render/overlay2d/atlas.h +101 -0
  420. cuju_engine-0.3.0/src/render/overlay2d/overlay.cpp +294 -0
  421. cuju_engine-0.3.0/src/render/overlay2d/overlay.h +135 -0
  422. cuju_engine-0.3.0/src/render/overlay2d/rotozoom.cpp +123 -0
  423. cuju_engine-0.3.0/src/render/overlay2d/surface.cpp +96 -0
  424. cuju_engine-0.3.0/src/render/overlay2d/surface.h +63 -0
  425. cuju_engine-0.3.0/src/render/pitch/bmp.cpp +119 -0
  426. cuju_engine-0.3.0/src/render/pitch/bmp.h +32 -0
  427. cuju_engine-0.3.0/src/render/pitch/perlin.cpp +109 -0
  428. cuju_engine-0.3.0/src/render/pitch/perlin.h +49 -0
  429. cuju_engine-0.3.0/src/render/pitch/pitch.cpp +686 -0
  430. cuju_engine-0.3.0/src/render/pitch/pitch.h +72 -0
  431. cuju_engine-0.3.0/src/render/pixels.cpp +564 -0
  432. cuju_engine-0.3.0/src/render/pixels.h +78 -0
  433. cuju_engine-0.3.0/src/render/polynomials.h +118 -0
  434. cuju_engine-0.3.0/src/render/render_api.cpp +339 -0
  435. cuju_engine-0.3.0/src/render/render_api.h +92 -0
  436. cuju_engine-0.3.0/src/render/sampler.cpp +964 -0
  437. cuju_engine-0.3.0/src/render/sampler.h +69 -0
  438. cuju_engine-0.3.0/src/render/scene/gl_stream.cpp +532 -0
  439. cuju_engine-0.3.0/src/render/scene/gl_stream.h +239 -0
  440. cuju_engine-0.3.0/src/render/scene/grf_math.cpp +137 -0
  441. cuju_engine-0.3.0/src/render/scene/grf_math.h +270 -0
  442. cuju_engine-0.3.0/src/render/scene/gui.cpp +380 -0
  443. cuju_engine-0.3.0/src/render/scene/gui.h +162 -0
  444. cuju_engine-0.3.0/src/render/scene/match.cpp +625 -0
  445. cuju_engine-0.3.0/src/render/scene/match.h +203 -0
  446. cuju_engine-0.3.0/src/render/scene/netting.cpp +120 -0
  447. cuju_engine-0.3.0/src/render/scene/netting.h +56 -0
  448. cuju_engine-0.3.0/src/render/scene/random.h +56 -0
  449. cuju_engine-0.3.0/src/render/scene/renderer3d.cpp +868 -0
  450. cuju_engine-0.3.0/src/render/scene/renderer3d.h +242 -0
  451. cuju_engine-0.3.0/src/render/scene/scene.cpp +832 -0
  452. cuju_engine-0.3.0/src/render/scene/scene.h +269 -0
  453. cuju_engine-0.3.0/src/render/scene/skinning.cpp +322 -0
  454. cuju_engine-0.3.0/src/render/scene/skinning.h +90 -0
  455. cuju_engine-0.3.0/src/render/scene/vertex_colors.cpp +82 -0
  456. cuju_engine-0.3.0/src/render/scene/vertex_colors.h +23 -0
  457. cuju_engine-0.3.0/src/render/sha256.cpp +102 -0
  458. cuju_engine-0.3.0/src/render/sha256.h +39 -0
  459. cuju_engine-0.3.0/src/render/shaders/ambient.cpp +312 -0
  460. cuju_engine-0.3.0/src/render/shaders/ambient.h +45 -0
  461. cuju_engine-0.3.0/src/render/shaders/lighting.cpp +303 -0
  462. cuju_engine-0.3.0/src/render/shaders/lighting.h +46 -0
  463. cuju_engine-0.3.0/src/render/shaders/overlay.cpp +96 -0
  464. cuju_engine-0.3.0/src/render/shaders/overlay.h +32 -0
  465. cuju_engine-0.3.0/src/render/shaders/postprocess.cpp +237 -0
  466. cuju_engine-0.3.0/src/render/shaders/postprocess.h +39 -0
  467. cuju_engine-0.3.0/src/render/shaders/quad_vs.h +40 -0
  468. cuju_engine-0.3.0/src/render/shaders/simple.cpp +289 -0
  469. cuju_engine-0.3.0/src/render/shaders/simple.h +36 -0
  470. cuju_engine-0.3.0/src/render/shaders/zphase.cpp +72 -0
  471. cuju_engine-0.3.0/src/render/shaders/zphase.h +30 -0
  472. cuju_engine-0.3.0/src/render/srgb.h +53 -0
  473. cuju_engine-0.3.0/src/render/texture.h +85 -0
  474. cuju_engine-0.3.0/src/scenario_api.h +118 -0
  475. cuju_engine-0.3.0/src/state_api.h +123 -0
  476. cuju_engine-0.3.0/tests/conftest.py +98 -0
  477. cuju_engine-0.3.0/tests/data/render_5_vs_5_seed_0.bin.z +0 -0
  478. cuju_engine-0.3.0/tests/test_action_log.py +122 -0
  479. cuju_engine-0.3.0/tests/test_allocator.py +67 -0
  480. cuju_engine-0.3.0/tests/test_async.py +157 -0
  481. cuju_engine-0.3.0/tests/test_auto_device.py +36 -0
  482. cuju_engine-0.3.0/tests/test_backends.py +19 -0
  483. cuju_engine-0.3.0/tests/test_bundle_cache.py +158 -0
  484. cuju_engine-0.3.0/tests/test_check.py +216 -0
  485. cuju_engine-0.3.0/tests/test_cli.py +563 -0
  486. cuju_engine-0.3.0/tests/test_cli_conformance.py +439 -0
  487. cuju_engine-0.3.0/tests/test_compare_with_grf.py +185 -0
  488. cuju_engine-0.3.0/tests/test_compile.py +104 -0
  489. cuju_engine-0.3.0/tests/test_data_checksums.py +38 -0
  490. cuju_engine-0.3.0/tests/test_device_checks.py +148 -0
  491. cuju_engine-0.3.0/tests/test_devices.py +53 -0
  492. cuju_engine-0.3.0/tests/test_difficulty.py +34 -0
  493. cuju_engine-0.3.0/tests/test_digests.py +53 -0
  494. cuju_engine-0.3.0/tests/test_distribution.py +252 -0
  495. cuju_engine-0.3.0/tests/test_dump_replay.py +105 -0
  496. cuju_engine-0.3.0/tests/test_dumps.py +301 -0
  497. cuju_engine-0.3.0/tests/test_engine_module.py +455 -0
  498. cuju_engine-0.3.0/tests/test_engine_render_mode.py +224 -0
  499. cuju_engine-0.3.0/tests/test_env.py +353 -0
  500. cuju_engine-0.3.0/tests/test_errors.py +91 -0
  501. cuju_engine-0.3.0/tests/test_first_index.py +54 -0
  502. cuju_engine-0.3.0/tests/test_fork.py +101 -0
  503. cuju_engine-0.3.0/tests/test_gfootball.py +142 -0
  504. cuju_engine-0.3.0/tests/test_gfootball_alias.py +670 -0
  505. cuju_engine-0.3.0/tests/test_gfootball_port.py +301 -0
  506. cuju_engine-0.3.0/tests/test_gpu_errors.py +21 -0
  507. cuju_engine-0.3.0/tests/test_grf_config.py +109 -0
  508. cuju_engine-0.3.0/tests/test_grf_suite.py +136 -0
  509. cuju_engine-0.3.0/tests/test_import.py +133 -0
  510. cuju_engine-0.3.0/tests/test_kaggle.py +186 -0
  511. cuju_engine-0.3.0/tests/test_long.py +69 -0
  512. cuju_engine-0.3.0/tests/test_masked_reset.py +119 -0
  513. cuju_engine-0.3.0/tests/test_memory.py +106 -0
  514. cuju_engine-0.3.0/tests/test_memory_estimate.py +333 -0
  515. cuju_engine-0.3.0/tests/test_multi_device.py +136 -0
  516. cuju_engine-0.3.0/tests/test_nvtx.py +40 -0
  517. cuju_engine-0.3.0/tests/test_observers.py +446 -0
  518. cuju_engine-0.3.0/tests/test_players.py +274 -0
  519. cuju_engine-0.3.0/tests/test_plugins.py +297 -0
  520. cuju_engine-0.3.0/tests/test_port_vs_env.py +74 -0
  521. cuju_engine-0.3.0/tests/test_processors.py +75 -0
  522. cuju_engine-0.3.0/tests/test_python_players.py +227 -0
  523. cuju_engine-0.3.0/tests/test_referee_animations.py +57 -0
  524. cuju_engine-0.3.0/tests/test_render_frames.py +954 -0
  525. cuju_engine-0.3.0/tests/test_render_media.py +389 -0
  526. cuju_engine-0.3.0/tests/test_reset_seeds.py +87 -0
  527. cuju_engine-0.3.0/tests/test_roles.py +103 -0
  528. cuju_engine-0.3.0/tests/test_shapes.py +55 -0
  529. cuju_engine-0.3.0/tests/test_stacked_state.py +155 -0
  530. cuju_engine-0.3.0/tests/test_state.py +76 -0
  531. cuju_engine-0.3.0/tests/test_state_errors.py +52 -0
  532. cuju_engine-0.3.0/tests/test_version.py +56 -0
  533. cuju_engine-0.3.0/tests/test_wrappers.py +262 -0
  534. cuju_engine-0.3.0/tests/test_write_dump.py +105 -0
@@ -0,0 +1,17 @@
1
+ BasedOnStyle: Google
2
+ Language: Cpp
3
+ Standard: c++17
4
+ ColumnLimit: 100
5
+ IndentWidth: 4
6
+ ContinuationIndentWidth: 4
7
+ ConstructorInitializerIndentWidth: 4
8
+ AccessModifierOffset: -4
9
+ DerivePointerAlignment: false
10
+ PointerAlignment: Right
11
+ ReferenceAlignment: Right
12
+ AllowShortFunctionsOnASingleLine: All
13
+ AllowShortIfStatementsOnASingleLine: WithoutElse
14
+ AllowShortLoopsOnASingleLine: true
15
+ IncludeBlocks: Preserve
16
+ SortIncludes: Never
17
+ ReflowComments: true
@@ -0,0 +1,5 @@
1
+ .git
2
+ build
3
+ dist
4
+ wheelhouse
5
+ **/__pycache__
@@ -0,0 +1,4 @@
1
+ * text=auto eol=lf
2
+ *.bin binary
3
+ *.cjb binary
4
+ *.cjr binary
@@ -0,0 +1,27 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ name: Bug
5
+ description: Something else doesn't work as the documentation says.
6
+ labels: [bug]
7
+ body:
8
+ - type: input
9
+ id: cuju-version
10
+ attributes:
11
+ label: cuju version
12
+ validations:
13
+ required: true
14
+ - type: textarea
15
+ id: reproduce
16
+ attributes:
17
+ label: How to reproduce it
18
+ description: The shortest code that shows the problem.
19
+ render: python
20
+ validations:
21
+ required: true
22
+ - type: textarea
23
+ id: expected
24
+ attributes:
25
+ label: What you expected, and what happened
26
+ validations:
27
+ required: true
@@ -0,0 +1,8 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ blank_issues_enabled: false
5
+ contact_links:
6
+ - name: Questions
7
+ url: https://github.com/cuju-football/engine/discussions
8
+ about: Ask and discuss in GitHub Discussions.
@@ -0,0 +1,58 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ name: Difference from GRF
5
+ description: cuju and Google Research Football give different outputs for the same input.
6
+ labels: [difference]
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ Thank you. A difference we can reproduce is a bug, and we fix it toward GRF.
12
+ The fastest way to a fix is the state from `get_state` just before the two diverge.
13
+ - type: input
14
+ id: cuju-version
15
+ attributes:
16
+ label: cuju version
17
+ description: "`python -c \"import importlib.metadata as m; print(m.version('cuju-engine'))\"`"
18
+ validations:
19
+ required: true
20
+ - type: dropdown
21
+ id: backend
22
+ attributes:
23
+ label: Backend
24
+ options: [cuda, cpu, both]
25
+ validations:
26
+ required: true
27
+ - type: textarea
28
+ id: grf-build
29
+ attributes:
30
+ label: Your GRF
31
+ description: The GRF version or commit, the operating system, and the glibc and GCC it was built with.
32
+ validations:
33
+ required: true
34
+ - type: textarea
35
+ id: setup
36
+ attributes:
37
+ label: Scenario, options and seed
38
+ description: The `BatchEnvironment` call, and the `create_environment` call on the GRF side.
39
+ render: python
40
+ validations:
41
+ required: true
42
+ - type: textarea
43
+ id: divergence
44
+ attributes:
45
+ label: Where they diverge
46
+ description: The first step that differs and what differs (observation, reward, done flag or state).
47
+ validations:
48
+ required: true
49
+ - type: textarea
50
+ id: attachments
51
+ attributes:
52
+ label: State and actions
53
+ description: Attach the state bytes and the actions that reproduce it, if you can.
54
+ - type: textarea
55
+ id: self-check
56
+ attributes:
57
+ label: "Output of `pytest tests/`"
58
+ render: text
@@ -0,0 +1,20 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ name: Missing GRF feature
5
+ description: Something Google Research Football offers that cuju doesn't.
6
+ labels: [grf-feature]
7
+ body:
8
+ - type: input
9
+ id: grf-call
10
+ attributes:
11
+ label: The GRF call or option
12
+ description: Such as an option of `create_environment` or a wrapper.
13
+ validations:
14
+ required: true
15
+ - type: textarea
16
+ id: use
17
+ attributes:
18
+ label: What you use it for
19
+ validations:
20
+ required: true
@@ -0,0 +1,30 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ name: Installation problem
5
+ description: cuju doesn't install, build or load.
6
+ labels: [install]
7
+ body:
8
+ - type: dropdown
9
+ id: route
10
+ attributes:
11
+ label: How you installed
12
+ options: [pip install cuju, pip install cuju-engine, from source, Docker, WSL2]
13
+ validations:
14
+ required: true
15
+ - type: textarea
16
+ id: system
17
+ attributes:
18
+ label: System
19
+ description: |
20
+ The output of `nvidia-smi`, `nvcc --version` (for a source build), `python -c "import torch; print(torch.__version__, torch.version.cuda)"`, and `grep -o -w 'avx2\|bmi2\|fma' /proc/cpuinfo | sort -u`.
21
+ render: text
22
+ validations:
23
+ required: true
24
+ - type: textarea
25
+ id: log
26
+ attributes:
27
+ label: The error and the log
28
+ render: text
29
+ validations:
30
+ required: true
@@ -0,0 +1,22 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ name: Performance
5
+ description: cuju runs slower than the published numbers on comparable hardware.
6
+ labels: [performance]
7
+ body:
8
+ - type: textarea
9
+ id: hardware
10
+ attributes:
11
+ label: Hardware
12
+ description: The GPU or CPU model, the driver, and how many cores the process may use.
13
+ validations:
14
+ required: true
15
+ - type: textarea
16
+ id: run
17
+ attributes:
18
+ label: What you ran
19
+ description: The command of `examples/benchmark.py`, or your own code, and the number you got.
20
+ render: text
21
+ validations:
22
+ required: true
@@ -0,0 +1,6 @@
1
+ Describe what this changes and why.
2
+
3
+ - [ ] `pytest tests/` passes, on a GPU as well when the change touches it
4
+ - [ ] `ruff check`, `ruff format --check` and `clang-format --dry-run -Werror` pass
5
+ - [ ] A change to `include/` or `src/` keeps every output, or moves it toward GRF with a reproducing
6
+ case
@@ -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
+ # The jobs only read the repository, so the token of every job reads alone.
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ cpu:
16
+ needs: grf-media
17
+ runs-on: ubuntu-24.04
18
+ steps:
19
+ - uses: actions/checkout@v7
20
+ - uses: actions/setup-python@v7
21
+ with:
22
+ python-version: '3.12'
23
+ - name: Install PyTorch for the CPU
24
+ run: pip install torch --index-url https://download.pytorch.org/whl/cpu
25
+ - name: Build and install the CPU backend
26
+ # hatchling builds the wheel of cuju-gfootball in the tests.
27
+ run: CMAKE_ARGS=-DCUJU_CUDA=OFF pip install '.[test,spaces]' ruff hatchling opencv-python-headless
28
+ - uses: actions/download-artifact@v8
29
+ with:
30
+ name: grf-media
31
+ path: grf-media
32
+ - name: Install the pinned GRF media
33
+ run: pip install --no-index --find-links grf-media cuju-grf-media
34
+ - name: Lint
35
+ run: |
36
+ ruff check python tests examples packages ci
37
+ ruff format --check python tests examples packages ci
38
+ find include src -name '*.h' -o -name '*.cuh' -o -name '*.cpp' -o -name '*.cu' \
39
+ | xargs clang-format-18 --dry-run -Werror
40
+ - name: Links of the README and the docs
41
+ run: python ci/check_links.py --offline
42
+ - name: Self-check
43
+ run: pytest tests
44
+
45
+ # The same expected digests on an aarch64 host, which is what lets aarch64 wheels ship.
46
+ cpu-arm:
47
+ runs-on: ubuntu-24.04-arm
48
+ steps:
49
+ - uses: actions/checkout@v7
50
+ - uses: actions/setup-python@v7
51
+ with:
52
+ python-version: '3.12'
53
+ - name: Install PyTorch for the CPU
54
+ run: pip install torch --index-url https://download.pytorch.org/whl/cpu
55
+ - name: Build and install the CPU backend
56
+ run: CMAKE_ARGS=-DCUJU_CUDA=OFF pip install '.[test,spaces]' opencv-python-headless
57
+ - name: Self-check
58
+ run: pytest tests
59
+
60
+ # The same expected digests from MSVC on Windows, which a Windows wheel would need first.
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]" ruff 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_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_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/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