Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Cooperative Cuisine Environment
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
Service Desk
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
Social Cognitive Systems
CoCoSy
Cooperative Cuisine Environment
Commits
faf74955
Commit
faf74955
authored
1 year ago
by
Fabian Heinrich
Browse files
Options
Downloads
Patches
Plain Diff
Added gui to main
parent
681f629c
No related branches found
No related tags found
1 merge request
!2
Resolve "2D movement continuous"
Pipeline
#41196
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
overcooked_simulator/main.py
+7
-2
7 additions, 2 deletions
overcooked_simulator/main.py
with
7 additions
and
2 deletions
overcooked_simulator/main.py
+
7
−
2
View file @
faf74955
...
@@ -2,17 +2,22 @@ from overcooked_simulator.player import Player
...
@@ -2,17 +2,22 @@ from overcooked_simulator.player import Player
import
sys
import
sys
from
overcooked_simulator.simulation_runner
import
Simulator
from
overcooked_simulator.simulation_runner
import
Simulator
from
overcooked_simulator.overcooked_environment
import
Environment
from
overcooked_simulator.overcooked_environment
import
Environment
from
overcooked_simulator.pygame_gui
import
PyGameGUI
def
main
():
def
main
():
simulator
=
Simulator
(
Environment
,
300
)
simulator
=
Simulator
(
Environment
,
300
)
simulator
.
register_player
(
Player
(
"
p1
"
,
[
100
,
200
]))
simulator
.
register_player
(
Player
(
"
p1
"
,
[
100
,
200
]))
simulator
.
register_player
(
Player
(
"
p2
"
,
[
200
,
100
]))
simulator
.
register_player
(
Player
(
"
p2
"
,
[
200
,
100
]))
simulator
.
start
(
)
gui
=
PyGameGUI
(
simulator
)
simulator
.
start
()
print
(
simulator
.
get_state
())
print
(
simulator
.
get_state
())
gui
.
start_pygame
()
simulator
.
stop
()
simulator
.
stop
()
sys
.
exit
()
sys
.
exit
()
...
...
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