Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
bigprint
pyDecMCTS
Commits
a911027e
Commit
a911027e
authored
Dec 03, 2019
by
Jayant Khatkar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quick fix
parent
207ba654
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
README.md
README.md
+2
-1
No files found.
README.md
View file @
a911027e
...
...
@@ -16,6 +16,7 @@ from DecMCTS import Tree
# data can be anything required to calculate your
# global reward and available actions
# It can be in any format (only used by your reward and avail_actions functions)
data
=
{}
# Create an available actions function
...
...
@@ -31,7 +32,7 @@ def avail_actions(data, state):
# actions taken by the current robot, and every other robot
# State is a dictionary with keys being robot IDs, and values
# are a list of actions taken from the starting position
def
reward
(
dat
,
state
):
def
reward
(
dat
a
,
state
):
each_robot_sum
=
[
sum
(
state
[
a
])
for
a
in
state
]
return
sum
(
each_robot_sum
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment