Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c74933a

Browse files
committed
added monkey & bananas planning problem
1 parent be656aa commit c74933a

File tree

7 files changed

+667
-564
lines changed

7 files changed

+667
-564
lines changed

logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,11 +1243,11 @@ def plan_shot(self, current, goals, allowed):
12431243
# ______________________________________________________________________________
12441244

12451245

1246-
def SAT_plan(init, transition, goal, t_max, SAT_solver=dpll_satisfiable):
1246+
def SATPlan(init, transition, goal, t_max, SAT_solver=dpll_satisfiable):
12471247
"""Converts a planning problem to Satisfaction problem by translating it to a cnf sentence.
12481248
[Figure 7.22]
12491249
>>> transition = {'A': {'Left': 'A', 'Right': 'B'}, 'B': {'Left': 'A', 'Right': 'C'}, 'C': {'Left': 'B', 'Right': 'C'}}
1250-
>>> SAT_plan('A', transition, 'C', 2) is None
1250+
>>> SATPlan('A', transition, 'C', 2) is None
12511251
True
12521252
"""
12531253

planning.py

Lines changed: 388 additions & 309 deletions
Large diffs are not rendered by default.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
pytest
12
networkx==1.11
23
jupyter
34
pandas

0 commit comments

Comments
 (0)