Skip to content

Commit a152100

Browse files
readability modifications
1 parent d6dbef6 commit a152100

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

axelrod/strategies/dbs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ def create_policy(pCC, pCD, pDC, pDD):
329329

330330

331331
def action_to_int(action):
332-
return (1 if action == C else 0)
332+
if action == C:
333+
return 1
334+
return 0
333335

334336

335337
def minimax_tree_search(begin_node, policy, max_depth):

0 commit comments

Comments
 (0)