Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Battle Pong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frederic Aust
Battle Pong
Commits
8b47188a
Commit
8b47188a
authored
4 years ago
by
Frederic Aust
Browse files
Options
Downloads
Patches
Plain Diff
Image Format an default Format von Battle Pong angepasst
parent
6b3f4240
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!6
Binding all settings to game
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
BattlePongAI/main.py
+2
-1
2 additions, 1 deletion
BattlePongAI/main.py
with
2 additions
and
1 deletion
BattlePongAI/main.py
+
2
−
1
View file @
8b47188a
...
@@ -15,7 +15,8 @@ async def main():
...
@@ -15,7 +15,8 @@ async def main():
recieved_values
=
await
gym
.
reset
()
recieved_values
=
await
gym
.
reset
()
data
=
recieved_values
[
0
]
data
=
recieved_values
[
0
]
print
(
'
main data
'
,
data
)
print
(
'
main data
'
,
data
)
image_mode
=
'
RGB
'
#image_mode = 'RGB'
image_mode
=
'
L
'
try
:
try
:
# Test show Image
# Test show Image
si
.
show_image
(
image_mode
,
data
[
'
info
'
][
'
screenshot
'
][
'
width
'
],
data
[
'
info
'
][
'
screenshot
'
][
'
height
'
],
si
.
show_image
(
image_mode
,
data
[
'
info
'
][
'
screenshot
'
][
'
width
'
],
data
[
'
info
'
][
'
screenshot
'
][
'
height
'
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment