Skip to content

Commit 9f4f3ff

Browse files
changes in Node documentation to avoid failure on doc
1 parent d5fbd47 commit 9f4f3ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

axelrod/strategies/dbs.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,11 @@ def is_stochastic(self):
256256

257257

258258
class StochasticNode(Node):
259-
"Node that have a probability p to get to each sibling"
260-
"Nodes (C, *) or (D, *)"
259+
"""
260+
Node that have a probability pC to get to each sibling
261+
A StochasticNode can be written (C, X) or (D, X), with X = C with
262+
a probability pC, else X = D
263+
"""
261264

262265
def __init__(self, own_action, pC, depth):
263266
self.pC = pC
@@ -287,7 +290,7 @@ def __init__(self, action1, action2, depth):
287290

288291
def get_siblings(self, policy):
289292
"""
290-
build 2 siblings (C, *) and (D, *)
293+
build 2 siblings (C, X) and (D, X)
291294
siblings of a DeterministicNode are Stochastic, and are of the
292295
same depth
293296
"""

0 commit comments

Comments
 (0)