cuju-engine 0.3.0__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. cuju/__init__.py +217 -0
  2. cuju/__main__.py +262 -0
  3. cuju/_batch/__init__.py +4 -0
  4. cuju/_batch/allocator.py +52 -0
  5. cuju/_batch/assets.py +68 -0
  6. cuju/_batch/environment.py +1890 -0
  7. cuju/_batch/frame_stack.py +114 -0
  8. cuju/_batch/library.py +190 -0
  9. cuju/_batch/log.py +103 -0
  10. cuju/_batch/memory.py +70 -0
  11. cuju/_batch/operators.py +55 -0
  12. cuju/_batch/pinned.py +39 -0
  13. cuju/_batch/pixels.py +207 -0
  14. cuju/_batch/state.py +77 -0
  15. cuju/_checksums.py +60 -0
  16. cuju/_cli_contract.py +244 -0
  17. cuju/_cli_parsers.py +191 -0
  18. cuju/_completion.py +277 -0
  19. cuju/_dump_to_txt.py +66 -0
  20. cuju/_grf_config.py +331 -0
  21. cuju/_library_path.py +141 -0
  22. cuju/_media.py +113 -0
  23. cuju/_pixels.py +276 -0
  24. cuju/_plugins.py +106 -0
  25. cuju/_python_players.py +224 -0
  26. cuju/_replay_command.py +109 -0
  27. cuju/_replay_player.py +42 -0
  28. cuju/_replays.py +414 -0
  29. cuju/_script_helpers.py +109 -0
  30. cuju/_version.py +6 -0
  31. cuju/action_log.py +371 -0
  32. cuju/check.py +596 -0
  33. cuju/cuju_cpu.dll +0 -0
  34. cuju/cuju_cuda.dll +0 -0
  35. cuju/cuju_render.dll +0 -0
  36. cuju/data/SHA256SUMS +20 -0
  37. cuju/data/animations.bin +0 -0
  38. cuju/data/assets/11_vs_11_competition_l0_r0.cjb +0 -0
  39. cuju/data/assets/11_vs_11_easy_stochastic_l0_r0.cjb +0 -0
  40. cuju/data/assets/11_vs_11_hard_stochastic_l0_r0.cjb +0 -0
  41. cuju/data/assets/11_vs_11_kaggle_l0_r0.cjb +0 -0
  42. cuju/data/assets/11_vs_11_stochastic_l0_r0.cjb +0 -0
  43. cuju/data/assets/1_vs_1_easy_l0_r0.cjb +0 -0
  44. cuju/data/assets/5_vs_5_l0_r0.cjb +0 -0
  45. cuju/data/assets/academy_3_vs_1_with_keeper_l0_r0.cjb +0 -0
  46. cuju/data/assets/academy_corner_l0_r0.cjb +0 -0
  47. cuju/data/assets/academy_counterattack_easy_l0_r0.cjb +0 -0
  48. cuju/data/assets/academy_counterattack_hard_l0_r0.cjb +0 -0
  49. cuju/data/assets/academy_empty_goal_close_l0_r0.cjb +0 -0
  50. cuju/data/assets/academy_empty_goal_l0_r0.cjb +0 -0
  51. cuju/data/assets/academy_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
  52. cuju/data/assets/academy_run_pass_and_shoot_with_keeper_l0_r0.cjb +0 -0
  53. cuju/data/assets/academy_run_to_score_l0_r0.cjb +0 -0
  54. cuju/data/assets/academy_run_to_score_with_keeper_l0_r0.cjb +0 -0
  55. cuju/data/assets/academy_single_goal_versus_lazy_l0_r0.cjb +0 -0
  56. cuju/data/assets/test_example_multiagent_l0_r0.cjb +0 -0
  57. cuju/data/digests.json +186 -0
  58. cuju/data/render_digests.json.z +0 -0
  59. cuju/data/scenarios/11_vs_11_competition.py +45 -0
  60. cuju/data/scenarios/11_vs_11_easy_stochastic.py +44 -0
  61. cuju/data/scenarios/11_vs_11_hard_stochastic.py +44 -0
  62. cuju/data/scenarios/11_vs_11_kaggle.py +46 -0
  63. cuju/data/scenarios/11_vs_11_stochastic.py +44 -0
  64. cuju/data/scenarios/1_vs_1_easy.py +25 -0
  65. cuju/data/scenarios/5_vs_5.py +33 -0
  66. cuju/data/scenarios/academy_3_vs_1_with_keeper.py +28 -0
  67. cuju/data/scenarios/academy_corner.py +45 -0
  68. cuju/data/scenarios/academy_counterattack_easy.py +45 -0
  69. cuju/data/scenarios/academy_counterattack_hard.py +45 -0
  70. cuju/data/scenarios/academy_empty_goal.py +25 -0
  71. cuju/data/scenarios/academy_empty_goal_close.py +25 -0
  72. cuju/data/scenarios/academy_pass_and_shoot_with_keeper.py +27 -0
  73. cuju/data/scenarios/academy_run_pass_and_shoot_with_keeper.py +27 -0
  74. cuju/data/scenarios/academy_run_to_score.py +30 -0
  75. cuju/data/scenarios/academy_run_to_score_with_keeper.py +30 -0
  76. cuju/data/scenarios/academy_single_goal_versus_lazy.py +49 -0
  77. cuju/data/scenarios/test_example_multiagent.py +28 -0
  78. cuju/dumps.py +942 -0
  79. cuju/engine_status.py +106 -0
  80. cuju/env.py +1168 -0
  81. cuju/errors.py +108 -0
  82. cuju/gfootball/GRF_SOURCES +86 -0
  83. cuju/gfootball/__init__.py +60 -0
  84. cuju/gfootball/_cv2.py +43 -0
  85. cuju/gfootball/_gym/__init__.py +88 -0
  86. cuju/gfootball/_gym/_vendored/GYM_SOURCES +22 -0
  87. cuju/gfootball/_gym/_vendored/__init__.py +43 -0
  88. cuju/gfootball/_gym/_vendored/core.py +361 -0
  89. cuju/gfootball/_gym/_vendored/envs/__init__.py +19 -0
  90. cuju/gfootball/_gym/_vendored/envs/registration.py +284 -0
  91. cuju/gfootball/_gym/_vendored/error.py +230 -0
  92. cuju/gfootball/_gym/_vendored/logger.py +56 -0
  93. cuju/gfootball/_gym/_vendored/spaces/__init__.py +30 -0
  94. cuju/gfootball/_gym/_vendored/spaces/box.py +171 -0
  95. cuju/gfootball/_gym/_vendored/spaces/dict.py +162 -0
  96. cuju/gfootball/_gym/_vendored/spaces/discrete.py +41 -0
  97. cuju/gfootball/_gym/_vendored/spaces/multi_binary.py +61 -0
  98. cuju/gfootball/_gym/_vendored/spaces/multi_discrete.py +77 -0
  99. cuju/gfootball/_gym/_vendored/spaces/space.py +94 -0
  100. cuju/gfootball/_gym/_vendored/spaces/tuple.py +96 -0
  101. cuju/gfootball/_gym/_vendored/spaces/utils.py +228 -0
  102. cuju/gfootball/_gym/_vendored/utils/__init__.py +13 -0
  103. cuju/gfootball/_gym/_vendored/utils/closer.py +72 -0
  104. cuju/gfootball/_gym/_vendored/utils/colorize.py +36 -0
  105. cuju/gfootball/_gym/_vendored/utils/ezpickle.py +37 -0
  106. cuju/gfootball/_gym/_vendored/utils/json_utils.py +27 -0
  107. cuju/gfootball/_gym/_vendored/utils/seeding.py +101 -0
  108. cuju/gfootball/_gym/_vendored/version.py +5 -0
  109. cuju/gfootball/_gym/_vendored/wrappers/__init__.py +8 -0
  110. cuju/gfootball/_gym/_vendored/wrappers/order_enforcing.py +20 -0
  111. cuju/gfootball/_gym/_vendored/wrappers/time_limit.py +31 -0
  112. cuju/gfootball/dump_to_txt.py +49 -0
  113. cuju/gfootball/dump_to_video.py +33 -0
  114. cuju/gfootball/env/__init__.py +271 -0
  115. cuju/gfootball/env/config.py +163 -0
  116. cuju/gfootball/env/constants.py +33 -0
  117. cuju/gfootball/env/controller_base.py +114 -0
  118. cuju/gfootball/env/event_queue.py +54 -0
  119. cuju/gfootball/env/football_action_set.py +220 -0
  120. cuju/gfootball/env/football_action_set_test.py +76 -0
  121. cuju/gfootball/env/football_env.py +225 -0
  122. cuju/gfootball/env/football_env_core.py +447 -0
  123. cuju/gfootball/env/football_env_test.py +692 -0
  124. cuju/gfootball/env/gym_test.py +47 -0
  125. cuju/gfootball/env/observation_preprocessing.py +94 -0
  126. cuju/gfootball/env/observation_processor.py +526 -0
  127. cuju/gfootball/env/observation_rotation.py +163 -0
  128. cuju/gfootball/env/observation_rotation_test.py +84 -0
  129. cuju/gfootball/env/player_base.py +46 -0
  130. cuju/gfootball/env/players/__init__.py +16 -0
  131. cuju/gfootball/env/players/agent.py +39 -0
  132. cuju/gfootball/env/players/bot.py +217 -0
  133. cuju/gfootball/env/players/gamepad.py +81 -0
  134. cuju/gfootball/env/players/keyboard.py +72 -0
  135. cuju/gfootball/env/players/lazy.py +31 -0
  136. cuju/gfootball/env/players/ppo2_cnn.py +119 -0
  137. cuju/gfootball/env/players/replay.py +40 -0
  138. cuju/gfootball/env/remote_football_env.py +189 -0
  139. cuju/gfootball/env/scenario_builder.py +125 -0
  140. cuju/gfootball/env/script_helpers.py +130 -0
  141. cuju/gfootball/env/script_helpers_test.py +107 -0
  142. cuju/gfootball/env/wrappers.py +440 -0
  143. cuju/gfootball/env/wrappers_test.py +150 -0
  144. cuju/gfootball/eval_server/__init__.py +17 -0
  145. cuju/gfootball/eval_server/config.py +30 -0
  146. cuju/gfootball/eval_server/example_client.py +107 -0
  147. cuju/gfootball/eval_server/proto/game_server.proto +62 -0
  148. cuju/gfootball/eval_server/proto/game_server_pb2.py +501 -0
  149. cuju/gfootball/eval_server/proto/game_server_pb2_grpc.py +113 -0
  150. cuju/gfootball/eval_server/proto/master.proto +25 -0
  151. cuju/gfootball/eval_server/proto/master_pb2.py +184 -0
  152. cuju/gfootball/eval_server/proto/master_pb2_grpc.py +62 -0
  153. cuju/gfootball/eval_server/utils.py +52 -0
  154. cuju/gfootball/examples/__init__.py +16 -0
  155. cuju/gfootball/examples/models.py +66 -0
  156. cuju/gfootball/examples/run_multiagent_rllib.py +140 -0
  157. cuju/gfootball/examples/run_ppo2.py +123 -0
  158. cuju/gfootball/play_game.py +73 -0
  159. cuju/gfootball/replay.py +43 -0
  160. cuju/gfootball/scenarios/11_vs_11_competition.py +59 -0
  161. cuju/gfootball/scenarios/11_vs_11_easy_stochastic.py +57 -0
  162. cuju/gfootball/scenarios/11_vs_11_hard_stochastic.py +57 -0
  163. cuju/gfootball/scenarios/11_vs_11_kaggle.py +60 -0
  164. cuju/gfootball/scenarios/11_vs_11_stochastic.py +57 -0
  165. cuju/gfootball/scenarios/1_vs_1_easy.py +39 -0
  166. cuju/gfootball/scenarios/5_vs_5.py +46 -0
  167. cuju/gfootball/scenarios/__init__.py +31 -0
  168. cuju/gfootball/scenarios/academy_3_vs_1_with_keeper.py +42 -0
  169. cuju/gfootball/scenarios/academy_corner.py +59 -0
  170. cuju/gfootball/scenarios/academy_counterattack_easy.py +59 -0
  171. cuju/gfootball/scenarios/academy_counterattack_hard.py +59 -0
  172. cuju/gfootball/scenarios/academy_empty_goal.py +39 -0
  173. cuju/gfootball/scenarios/academy_empty_goal_close.py +39 -0
  174. cuju/gfootball/scenarios/academy_pass_and_shoot_with_keeper.py +41 -0
  175. cuju/gfootball/scenarios/academy_run_pass_and_shoot_with_keeper.py +41 -0
  176. cuju/gfootball/scenarios/academy_run_to_score.py +44 -0
  177. cuju/gfootball/scenarios/academy_run_to_score_with_keeper.py +44 -0
  178. cuju/gfootball/scenarios/academy_single_goal_versus_lazy.py +63 -0
  179. cuju/gfootball/scenarios/test_example_multiagent.py +42 -0
  180. cuju/gfootball/scenarios/tests/11_vs_11_deterministic.py +58 -0
  181. cuju/gfootball/scenarios/tests/11_vs_11_easy_deterministic.py +58 -0
  182. cuju/gfootball/scenarios/tests/11_vs_11_hard_deterministic.py +58 -0
  183. cuju/gfootball/scenarios/tests/11_vs_11_single_goal_deterministic.py +58 -0
  184. cuju/gfootball/scenarios/tests/11_vs_11_single_goal_stochastic.py +58 -0
  185. cuju/gfootball/scenarios/tests/11_vs_4_offence_deterministic.py +47 -0
  186. cuju/gfootball/scenarios/tests/11_vs_4_offence_stochastic.py +47 -0
  187. cuju/gfootball/scenarios/tests/__init__.py +31 -0
  188. cuju/gfootball/scenarios/tests/corner_test.py +38 -0
  189. cuju/gfootball/scenarios/tests/goal_test.py +35 -0
  190. cuju/gfootball/scenarios/tests/keeper_test.py +38 -0
  191. cuju/gfootball/scenarios/tests/kickoff_for_goal_loosing_team_test.py +34 -0
  192. cuju/gfootball/scenarios/tests/multiagent_wrapper.py +60 -0
  193. cuju/gfootball/scenarios/tests/offside_test.py +39 -0
  194. cuju/gfootball/scenarios/tests/penalty.py +34 -0
  195. cuju/gfootball/scenarios/tests/second_half.py +33 -0
  196. cuju/gfootball/scenarios/tests/symmetric.py +53 -0
  197. cuju/gfootball_engine/__init__.py +31 -0
  198. cuju/gfootball_engine/_gameplayfootball.py +1624 -0
  199. cuju/gfootball_engine/_native.py +193 -0
  200. cuju/gfootball_engine/_pickle_names.py +114 -0
  201. cuju/gfootball_engine/_render_hooks.py +156 -0
  202. cuju/kaggle.py +425 -0
  203. cuju/multi_device.py +401 -0
  204. cuju/players.py +260 -0
  205. cuju/raw.py +93 -0
  206. cuju/scenarios.py +661 -0
  207. cuju/state.py +211 -0
  208. cuju/wrappers.py +325 -0
  209. cuju_engine-0.3.0.dist-info/METADATA +325 -0
  210. cuju_engine-0.3.0.dist-info/RECORD +222 -0
  211. cuju_engine-0.3.0.dist-info/WHEEL +5 -0
  212. cuju_engine-0.3.0.dist-info/entry_points.txt +4 -0
  213. cuju_engine-0.3.0.dist-info/licenses/LICENSE +202 -0
  214. cuju_engine-0.3.0.dist-info/licenses/LICENSES/BSD-3-Clause.txt +31 -0
  215. cuju_engine-0.3.0.dist-info/licenses/LICENSES/BSL-1.0.txt +23 -0
  216. cuju_engine-0.3.0.dist-info/licenses/LICENSES/LGPL-2.1-or-later.txt +502 -0
  217. cuju_engine-0.3.0.dist-info/licenses/LICENSES/MIT-Mesa.txt +26 -0
  218. cuju_engine-0.3.0.dist-info/licenses/LICENSES/MIT-gym.txt +23 -0
  219. cuju_engine-0.3.0.dist-info/licenses/LICENSES/MIT.txt +23 -0
  220. cuju_engine-0.3.0.dist-info/licenses/LICENSES/SunPro.txt +8 -0
  221. cuju_engine-0.3.0.dist-info/licenses/LICENSES/Zlib.txt +20 -0
  222. cuju_engine-0.3.0.dist-info/licenses/NOTICE +56 -0
@@ -0,0 +1,58 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 3000
27
+ builder.config().deterministic = True
28
+ builder.config().end_episode_on_score = True
29
+ if builder.EpisodeNumber() % 2 == 0:
30
+ first_team = Team.e_Left
31
+ second_team = Team.e_Right
32
+ else:
33
+ first_team = Team.e_Right
34
+ second_team = Team.e_Left
35
+ builder.SetTeam(first_team)
36
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
37
+ builder.AddPlayer(0.000000, 0.020000, e_PlayerRole_RM)
38
+ builder.AddPlayer(0.000000, -0.020000, e_PlayerRole_CF)
39
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
40
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
41
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
42
+ builder.AddPlayer(-0.422000, 0.195760, e_PlayerRole_RB)
43
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
44
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
45
+ builder.AddPlayer(-0.184212, 0.105680, e_PlayerRole_CM)
46
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
47
+ builder.SetTeam(second_team)
48
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
49
+ builder.AddPlayer(-0.050000, 0.000000, e_PlayerRole_RM)
50
+ builder.AddPlayer(-0.010000, 0.216102, e_PlayerRole_CF)
51
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
52
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
53
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
54
+ builder.AddPlayer(-0.422000, 0.195760, e_PlayerRole_RB)
55
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
56
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
57
+ builder.AddPlayer(-0.184212, 0.105680, e_PlayerRole_CM)
58
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
@@ -0,0 +1,58 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 3000
27
+ builder.config().deterministic = False
28
+ builder.config().end_episode_on_score = True
29
+ if builder.EpisodeNumber() % 2 == 0:
30
+ first_team = Team.e_Left
31
+ second_team = Team.e_Right
32
+ else:
33
+ first_team = Team.e_Right
34
+ second_team = Team.e_Left
35
+ builder.SetTeam(first_team)
36
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
37
+ builder.AddPlayer(0.000000, 0.020000, e_PlayerRole_RM)
38
+ builder.AddPlayer(0.000000, -0.020000, e_PlayerRole_CF)
39
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
40
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
41
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
42
+ builder.AddPlayer(-0.422000, 0.195760, e_PlayerRole_RB)
43
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
44
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
45
+ builder.AddPlayer(-0.184212, 0.105680, e_PlayerRole_CM)
46
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
47
+ builder.SetTeam(second_team)
48
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
49
+ builder.AddPlayer(-0.050000, 0.000000, e_PlayerRole_RM)
50
+ builder.AddPlayer(-0.010000, 0.216102, e_PlayerRole_CF)
51
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
52
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
53
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
54
+ builder.AddPlayer(-0.422000, 0.195760, e_PlayerRole_RB)
55
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
56
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
57
+ builder.AddPlayer(-0.184212, 0.105680, e_PlayerRole_CM)
58
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
@@ -0,0 +1,47 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 400
27
+ builder.config().deterministic = True
28
+ builder.config().end_episode_on_score = True
29
+ builder.config().end_episode_on_out_of_play = True
30
+ builder.config().end_episode_on_possession_change = True
31
+ builder.SetTeam(Team.e_Left)
32
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
33
+ builder.AddPlayer(0.000000, 0.020000, e_PlayerRole_RM)
34
+ builder.AddPlayer(0.000000, -0.020000, e_PlayerRole_CF)
35
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
36
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
37
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
38
+ builder.AddPlayer(-0.422000, 0.19576, e_PlayerRole_RB)
39
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
40
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
41
+ builder.AddPlayer(-0.184212, 0.105681, e_PlayerRole_CM)
42
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
43
+ builder.SetTeam(Team.e_Right)
44
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
45
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
46
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
47
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
@@ -0,0 +1,47 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 400
27
+ builder.config().deterministic = False
28
+ builder.config().end_episode_on_score = True
29
+ builder.config().end_episode_on_out_of_play = True
30
+ builder.config().end_episode_on_possession_change = True
31
+ builder.SetTeam(Team.e_Left)
32
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
33
+ builder.AddPlayer(0.000000, 0.020000, e_PlayerRole_RM)
34
+ builder.AddPlayer(0.000000, -0.020000, e_PlayerRole_CF)
35
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
36
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
37
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
38
+ builder.AddPlayer(-0.422000, 0.19576, e_PlayerRole_RB)
39
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
40
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
41
+ builder.AddPlayer(-0.184212, 0.105681, e_PlayerRole_CM)
42
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
43
+ builder.SetTeam(Team.e_Right)
44
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
45
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
46
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
47
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
@@ -0,0 +1,31 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+ from cuju import gfootball_engine as libgame
21
+ e_PlayerRole_GK = libgame.e_PlayerRole.e_PlayerRole_GK
22
+ e_PlayerRole_CB = libgame.e_PlayerRole.e_PlayerRole_CB
23
+ e_PlayerRole_LB = libgame.e_PlayerRole.e_PlayerRole_LB
24
+ e_PlayerRole_RB = libgame.e_PlayerRole.e_PlayerRole_RB
25
+ e_PlayerRole_DM = libgame.e_PlayerRole.e_PlayerRole_DM
26
+ e_PlayerRole_CM = libgame.e_PlayerRole.e_PlayerRole_CM
27
+ e_PlayerRole_LM = libgame.e_PlayerRole.e_PlayerRole_LM
28
+ e_PlayerRole_RM = libgame.e_PlayerRole.e_PlayerRole_RM
29
+ e_PlayerRole_AM = libgame.e_PlayerRole.e_PlayerRole_AM
30
+ e_PlayerRole_CF = libgame.e_PlayerRole.e_PlayerRole_CF
31
+ Team = libgame.e_Team
@@ -0,0 +1,38 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 30
27
+ builder.config().deterministic = False
28
+ if builder.EpisodeNumber() % 2 == 0:
29
+ builder.SetBallPosition(-0.9, 0.3)
30
+ else:
31
+ builder.SetBallPosition(0.9, -0.3)
32
+ builder.SetTeam(Team.e_Left)
33
+ builder.AddPlayer(-1.00, 0.00, e_PlayerRole_GK, True)
34
+ builder.AddPlayer(-0.85, 0.30, e_PlayerRole_RM, True)
35
+ builder.AddPlayer(0.00, 0.00, e_PlayerRole_RM, True)
36
+ builder.SetTeam(Team.e_Right)
37
+ builder.AddPlayer(-1.00, 0.00, e_PlayerRole_GK, True)
38
+ builder.AddPlayer(-0.85, 0.30, e_PlayerRole_RM, True)
@@ -0,0 +1,35 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 65
27
+ builder.config().deterministic = True
28
+ if builder.EpisodeNumber() % 2 == 0:
29
+ builder.SetBallPosition(0.5, 0.00)
30
+ else:
31
+ builder.SetBallPosition(-0.5, 0.00)
32
+ builder.SetTeam(Team.e_Left)
33
+ builder.AddPlayer(0.5, 0.00, e_PlayerRole_GK)
34
+ builder.SetTeam(Team.e_Right)
35
+ builder.AddPlayer(0.5, 0.00, e_PlayerRole_GK)
@@ -0,0 +1,38 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 30
27
+ builder.config().deterministic = False
28
+ if builder.EpisodeNumber() % 2 == 0:
29
+ builder.SetBallPosition(0.9, 0.3)
30
+ else:
31
+ builder.SetBallPosition(-0.9, -0.3)
32
+ builder.SetTeam(Team.e_Left)
33
+ builder.AddPlayer(-1.00, 0.00, e_PlayerRole_GK, True)
34
+ builder.AddPlayer(0.85, 0.30, e_PlayerRole_RM, True)
35
+ builder.AddPlayer(0.00, 0.00, e_PlayerRole_RM, True)
36
+ builder.SetTeam(Team.e_Right)
37
+ builder.AddPlayer(-1.00, 0.00, e_PlayerRole_GK, True)
38
+ builder.AddPlayer(0.85, 0.30, e_PlayerRole_RM, True)
@@ -0,0 +1,34 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 400
27
+ builder.config().right_team_difficulty = 0.6
28
+ builder.config().deterministic = True
29
+ builder.SetTeam(Team.e_Left)
30
+ builder.AddPlayer(1.000000, 0.000000, e_PlayerRole_GK)
31
+ builder.AddPlayer(0.800000, 0.000000, e_PlayerRole_RM)
32
+ builder.SetTeam(Team.e_Right)
33
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
34
+ builder.AddPlayer(0.000000, 0.020000, e_PlayerRole_RM)
@@ -0,0 +1,60 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().control_all_players = True
27
+ builder.config().game_duration = 3000
28
+ builder.config().right_team_difficulty = 1.0
29
+ builder.config().left_team_difficulty = 1.0
30
+ builder.config().deterministic = False
31
+ if builder.EpisodeNumber() % 2 == 0:
32
+ first_team = Team.e_Left
33
+ second_team = Team.e_Right
34
+ else:
35
+ first_team = Team.e_Right
36
+ second_team = Team.e_Left
37
+ builder.SetTeam(first_team)
38
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
39
+ builder.AddPlayer(0.000000, 0.020000, e_PlayerRole_RM)
40
+ builder.AddPlayer(0.000000, -0.020000, e_PlayerRole_CF)
41
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
42
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
43
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
44
+ builder.AddPlayer(-0.422000, 0.195760, e_PlayerRole_RB)
45
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
46
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
47
+ builder.AddPlayer(-0.184212, 0.105680, e_PlayerRole_CM)
48
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
49
+ builder.SetTeam(second_team)
50
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
51
+ builder.AddPlayer(-0.050000, 0.000000, e_PlayerRole_RM)
52
+ builder.AddPlayer(-0.010000, 0.216102, e_PlayerRole_CF)
53
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
54
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
55
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
56
+ builder.AddPlayer(-0.422000, 0.195760, e_PlayerRole_RB)
57
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
58
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
59
+ builder.AddPlayer(-0.184212, 0.105680, e_PlayerRole_CM)
60
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
@@ -0,0 +1,39 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 50
27
+ builder.config().deterministic = True
28
+ if builder.EpisodeNumber() % 2 == 0:
29
+ first_team = Team.e_Right
30
+ second_team = Team.e_Left
31
+ else:
32
+ first_team = Team.e_Left
33
+ second_team = Team.e_Right
34
+ builder.SetTeam(first_team)
35
+ builder.AddPlayer(-0.050000, 0.000000, e_PlayerRole_GK)
36
+ builder.AddPlayer(0.8000000, 0.000000, e_PlayerRole_RM)
37
+ builder.SetTeam(second_team)
38
+ builder.AddPlayer(0.000000, 0.400000, e_PlayerRole_GK, True)
39
+ builder.AddPlayer(0.000000, -0.400000, e_PlayerRole_RM, True)
@@ -0,0 +1,34 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 30
27
+ builder.config().deterministic = True
28
+ builder.SetBallPosition(-0.72, 0.0)
29
+ builder.SetTeam(Team.e_Left)
30
+ builder.AddPlayer(-1.00, 0.00, e_PlayerRole_GK, True)
31
+ builder.AddPlayer(-0.69, 0.00, e_PlayerRole_RM, True)
32
+ builder.SetTeam(Team.e_Right)
33
+ builder.AddPlayer(-1.00, 0.00, e_PlayerRole_GK, True)
34
+ builder.AddPlayer(0.70, 0.00, e_PlayerRole_RM, True)
@@ -0,0 +1,33 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 10
27
+ builder.config().second_half = 5
28
+ builder.SetTeam(Team.e_Left)
29
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK, lazy=True)
30
+ builder.AddPlayer(0.000000, 0.020000, e_PlayerRole_RM, lazy=True)
31
+ builder.SetTeam(Team.e_Right)
32
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK, lazy=True)
33
+ builder.AddPlayer(-0.500000, 0.000000, e_PlayerRole_RM, lazy=True)
@@ -0,0 +1,53 @@
1
+ # coding=utf-8
2
+ # Copyright 2019 Google LLC
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # Modified by the cuju Authors in 2026, in the import lines that ci/port_gfootball.py lists.
15
+ # SPDX-License-Identifier: Apache-2.0
16
+
17
+
18
+
19
+
20
+
21
+
22
+ from . import *
23
+
24
+
25
+ def build_scenario(builder):
26
+ builder.config().game_duration = 3000
27
+ builder.config().left_team_difficulty = 0.95
28
+ builder.config().right_team_difficulty = 0.95
29
+ builder.config().deterministic = False
30
+ builder.SetTeam(Team.e_Left)
31
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
32
+ builder.AddPlayer(-0.050000, 0.000000, e_PlayerRole_RM)
33
+ builder.AddPlayer(-0.010000, 0.216102, e_PlayerRole_CF)
34
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
35
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
36
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
37
+ builder.AddPlayer(-0.422000, 0.195760, e_PlayerRole_RB)
38
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
39
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
40
+ builder.AddPlayer(-0.184212, 0.105680, e_PlayerRole_CM)
41
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
42
+ builder.SetTeam(Team.e_Right)
43
+ builder.AddPlayer(-1.000000, 0.000000, e_PlayerRole_GK)
44
+ builder.AddPlayer(-0.050000, 0.000000, e_PlayerRole_RM)
45
+ builder.AddPlayer(-0.010000, 0.216102, e_PlayerRole_CF)
46
+ builder.AddPlayer(-0.422000, -0.19576, e_PlayerRole_LB)
47
+ builder.AddPlayer(-0.500000, -0.06356, e_PlayerRole_CB)
48
+ builder.AddPlayer(-0.500000, 0.063559, e_PlayerRole_CB)
49
+ builder.AddPlayer(-0.422000, 0.195760, e_PlayerRole_RB)
50
+ builder.AddPlayer(-0.184212, -0.10568, e_PlayerRole_CM)
51
+ builder.AddPlayer(-0.267574, 0.000000, e_PlayerRole_CM)
52
+ builder.AddPlayer(-0.184212, 0.105680, e_PlayerRole_CM)
53
+ builder.AddPlayer(-0.010000, -0.21610, e_PlayerRole_LM)
@@ -0,0 +1,31 @@
1
+ # Copyright 2026 The cuju Authors
2
+ # Copyright 2019 Google LLC
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ """GRF's package `gfootball_engine`, whose module `_gameplayfootball` cuju's engine implements.
6
+
7
+ `cuju.gfootball` imports it as GRF's Python imports `gfootball_engine`. The module keeps GRF's
8
+ names and the environment variables that GRF's package sets, and leaves `sys.path` as it is, so
9
+ that GRF's own `_gameplayfootball` is never shadowed where both are installed.
10
+ """
11
+
12
+ from __future__ import absolute_import, division, print_function # noqa: UP010, GRF's names
13
+
14
+ import logging # noqa: F401, a name of GRF's package
15
+ import os
16
+ import sys # noqa: F401, a name of GRF's package
17
+
18
+ game_path = os.path.dirname(os.path.abspath(__file__))
19
+ gfootball_dir = os.path.dirname(os.path.abspath(__file__))
20
+ font_file = os.path.join(gfootball_dir, 'fonts/AlegreyaSansSC-ExtraBold.ttf')
21
+ if 'MESA_GL_VERSION_OVERRIDE' not in os.environ:
22
+ os.environ['MESA_GL_VERSION_OVERRIDE'] = '3.2'
23
+ if 'MESA_GLSL_VERSION_OVERRIDE' not in os.environ:
24
+ os.environ['MESA_GLSL_VERSION_OVERRIDE'] = '150'
25
+ if 'GFOOTBALL_FONT' not in os.environ:
26
+ os.environ['GFOOTBALL_FONT'] = font_file
27
+ data_dir = os.path.join(gfootball_dir, 'data')
28
+ if 'GFOOTBALL_DATA_DIR' not in os.environ:
29
+ os.environ['GFOOTBALL_DATA_DIR'] = data_dir
30
+
31
+ from ._gameplayfootball import * # noqa: E402, F403