feat: p0 and p1
This commit is contained in:
3
search/test_cases/q6/CONFIG
Normal file
3
search/test_cases/q6/CONFIG
Normal file
@ -0,0 +1,3 @@
|
||||
class: "Q6PartialCreditQuestion"
|
||||
max_points: "3"
|
||||
depends: "q4"
|
7
search/test_cases/q6/corner_sanity_1.solution
Normal file
7
search/test_cases/q6/corner_sanity_1.solution
Normal file
@ -0,0 +1,7 @@
|
||||
# In order for a heuristic to be admissible, the value
|
||||
# of the heuristic must be less at each state than the
|
||||
# true cost of the optimal path from that state to a goal.
|
||||
cost: "8"
|
||||
path: """
|
||||
North South South East East East North North
|
||||
"""
|
12
search/test_cases/q6/corner_sanity_1.test
Normal file
12
search/test_cases/q6/corner_sanity_1.test
Normal file
@ -0,0 +1,12 @@
|
||||
class: "CornerHeuristicSanity"
|
||||
points: "1"
|
||||
|
||||
# The following specifies the layout to be used
|
||||
layout: """
|
||||
%%%%%%
|
||||
%. .%
|
||||
%P %
|
||||
%. .%
|
||||
%%%%%%
|
||||
"""
|
||||
|
7
search/test_cases/q6/corner_sanity_2.solution
Normal file
7
search/test_cases/q6/corner_sanity_2.solution
Normal file
@ -0,0 +1,7 @@
|
||||
# In order for a heuristic to be admissible, the value
|
||||
# of the heuristic must be less at each state than the
|
||||
# true cost of the optimal path from that state to a goal.
|
||||
cost: "8"
|
||||
path: """
|
||||
West North North East East East South South
|
||||
"""
|
12
search/test_cases/q6/corner_sanity_2.test
Normal file
12
search/test_cases/q6/corner_sanity_2.test
Normal file
@ -0,0 +1,12 @@
|
||||
class: "CornerHeuristicSanity"
|
||||
points: "1"
|
||||
|
||||
# The following specifies the layout to be used
|
||||
layout: """
|
||||
%%%%%%
|
||||
%. .%
|
||||
% %% %
|
||||
%.P%.%
|
||||
%%%%%%
|
||||
"""
|
||||
|
9
search/test_cases/q6/corner_sanity_3.solution
Normal file
9
search/test_cases/q6/corner_sanity_3.solution
Normal file
@ -0,0 +1,9 @@
|
||||
# In order for a heuristic to be admissible, the value
|
||||
# of the heuristic must be less at each state than the
|
||||
# true cost of the optimal path from that state to a goal.
|
||||
cost: "28"
|
||||
path: """
|
||||
South South South West West West West East East East East East North
|
||||
North North North North West West West South South South West West
|
||||
North North North
|
||||
"""
|
15
search/test_cases/q6/corner_sanity_3.test
Normal file
15
search/test_cases/q6/corner_sanity_3.test
Normal file
@ -0,0 +1,15 @@
|
||||
class: "CornerHeuristicSanity"
|
||||
points: "1"
|
||||
|
||||
# The following specifies the layout to be used
|
||||
layout: """
|
||||
%%%%%%%%
|
||||
%.% .%
|
||||
% % % %
|
||||
% % %P %
|
||||
% % %
|
||||
%%%%% %
|
||||
%. .%
|
||||
%%%%%%%%
|
||||
"""
|
||||
|
16
search/test_cases/q6/medium_corners.solution
Normal file
16
search/test_cases/q6/medium_corners.solution
Normal file
@ -0,0 +1,16 @@
|
||||
# This solution file specifies the length of the optimal path
|
||||
# as well as the thresholds on number of nodes expanded to be
|
||||
# used in scoring.
|
||||
cost: "106"
|
||||
path: """
|
||||
North East East East East North North West West West West North North
|
||||
North North North North North North West West West West South South
|
||||
East East East East South South South South South South West West
|
||||
South South South West West East East North North North East East East
|
||||
East East East East East South South East East East East East North
|
||||
North East East North North East East North North East East East East
|
||||
South South South South East East North North East East South South
|
||||
South South South North North North North North North North West West
|
||||
North North East East North North
|
||||
"""
|
||||
thresholds: "2000 1600 1200"
|
19
search/test_cases/q6/medium_corners.test
Normal file
19
search/test_cases/q6/medium_corners.test
Normal file
@ -0,0 +1,19 @@
|
||||
class: "CornerHeuristicPacman"
|
||||
|
||||
# The following specifies the layout to be used
|
||||
layout: """
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%. % % % %.%
|
||||
% % % %%%%%% %%%%%%% % %
|
||||
% % % % % %
|
||||
%%%%% %%%%% %%% %% %%%%% % %%%
|
||||
% % % % % % % % %
|
||||
% %%% % % % %%%%%%%% %%% %%% %
|
||||
% % %% % % % %
|
||||
%%% % %%%%%%% %%%% %%% % % % %
|
||||
% % %% % % %
|
||||
% % %%%%% % %%%% % %%% %%% % %
|
||||
% % % % % % %%% %
|
||||
%. %P%%%%% % %%% % .%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
"""
|
Reference in New Issue
Block a user