Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wumpus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tessaris Sergio
wumpus
Commits
5bbc3f76
Commit
5bbc3f76
authored
3 years ago
by
Tessaris Sergio
Browse files
Options
Downloads
Patches
Plain Diff
refactor: API in wumpus namespace
parent
10c3ec7e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/eater-usage.py
+1
-2
1 addition, 2 deletions
examples/eater-usage.py
wumpus/__init__.py
+1
-1
1 addition, 1 deletion
wumpus/__init__.py
with
2 additions
and
3 deletions
examples/eater-usage.py
+
1
−
2
View file @
5bbc3f76
...
@@ -8,8 +8,7 @@ import random
...
@@ -8,8 +8,7 @@ import random
from
typing
import
Iterable
from
typing
import
Iterable
import
sys
import
sys
from
wumpus
import
InformedPlayer
,
run_episode
from
wumpus
import
InformedPlayer
,
run_episode
,
Eater
,
EaterWorld
,
Food
from
wumpus.gridworld
import
Eater
,
EaterWorld
,
Food
class
MyPlayer
(
InformedPlayer
):
class
MyPlayer
(
InformedPlayer
):
...
...
This diff is collapsed.
Click to expand it.
wumpus/__init__.py
+
1
−
1
View file @
5bbc3f76
from
.gridworld
import
Agent
,
Percept
,
Coordinate
,
coord
,
GridWorld
,
EaterWorld
,
GridWorldException
from
.gridworld
import
Agent
,
Percept
,
Coordinate
,
coord
,
GridWorld
,
EaterWorld
,
GridWorldException
,
Eater
,
Food
from
.player
import
InformedPlayer
,
UninformedPlayer
,
Player
,
UserPlayer
,
RandomPlayer
from
.player
import
InformedPlayer
,
UninformedPlayer
,
Player
,
UserPlayer
,
RandomPlayer
from
.wumpus
import
WumpusWorld
,
Hunter
,
Wumpus
,
Pit
,
Gold
,
Exit
from
.wumpus
import
WumpusWorld
,
Hunter
,
Wumpus
,
Pit
,
Gold
,
Exit
from
.runner
import
run_episode
from
.runner
import
run_episode
...
...
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