feat: p0 and p1

This commit is contained in:
zsq259
2024-06-23 00:05:13 +08:00
parent f105d29e25
commit 71975d5889
228 changed files with 11213 additions and 0 deletions

View File

@ -0,0 +1,3 @@
class: "PartialCreditQuestion"
max_points: "4"
depends: "q4"

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_1.test.
solution_cost: "0"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 1"
layout: """
%%%%%%
% %
% %
%P %
%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_10.test.
solution_cost: "7"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 10"
layout: """
%%%%%%%%
% %
%. P .%
% %
%%%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_11.test.
solution_cost: "8"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 11"
layout: """
%%%%%%%%
% %
% P %
%. . .%
%%%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_12.test.
solution_cost: "1"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 12"
layout: """
%%%%%%%%
% %
% P.%
% %
%%%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_13.test.
solution_cost: "5"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 13"
layout: """
%%%%%%%%
% %
%P. .%
% %
%%%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_14.test.
solution_cost: "31"

View File

@ -0,0 +1,19 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 14"
layout: """
%%%%%%%%%%
% %
% ...%...%
% .%.%.%.%
% .%.%.%.%
% .%.%.%.%
% .%.%.%.%
% .%.%.%.%
%P.%...%.%
% %
%%%%%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_15.test.
solution_cost: "21"

View File

@ -0,0 +1,32 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 15"
layout: """
%%%
% %
% %
% %
% %
% %
%.%
%.%
% %
% %
% %
% %
% %
% %
% %
%.%
% %
%P%
% %
% %
% %
% %
%.%
%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_16.test.
solution_cost: "7"

View File

@ -0,0 +1,15 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 16"
layout: """
%%%%
% .%
% %
%P %
% %
% .%
%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_17.test.
solution_cost: "16"

View File

@ -0,0 +1,14 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 17"
layout: """
%%%%%%%%
%.%....%
%.% %%.%
%.%P%%.%
%... .%
%%%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_2.test.
solution_cost: "0"

View File

@ -0,0 +1,32 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 2"
layout: """
%%%
% %
% %
% %
% %
% %
% %
% %
% %
% %
% %
% %
% %
% %
% %
% %
% %
%P%
% %
% %
% %
% %
% %
%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_3.test.
solution_cost: "0"

View File

@ -0,0 +1,15 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 3"
layout: """
%%%%
% %
% %
%P %
% %
% %
%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_4.test.
solution_cost: "0"

View File

@ -0,0 +1,14 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 4"
layout: """
%%%%%%%%
% % %
% % %% %
% %P%% %
% %
%%%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_5.test.
solution_cost: "11"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 5"
layout: """
%%%%%%
%....%
%....%
%P...%
%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_6.test.
solution_cost: "5"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 6"
layout: """
%%%%%%
% .%
%.P..%
% %
%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_7.test.
solution_cost: "7"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 7"
layout: """
%%%%%%%
% .%
%. P..%
% %
%%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_8.test.
solution_cost: "5"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 8"
layout: """
%%%%%%
% .%
% .%
%P .%
%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_9.test.
solution_cost: "6"

View File

@ -0,0 +1,13 @@
class: "HeuristicTest"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "Test 9"
layout: """
%%%%%%
% %. %
% %%.%
%P. .%
%%%%%%
"""

View File

@ -0,0 +1,2 @@
# This is the solution file for test_cases/q7/food_heuristic_grade_tricky.test.
# File intentionally blank.

View File

@ -0,0 +1,19 @@
class: "HeuristicGrade"
heuristic: "foodHeuristic"
searchProblemClass: "FoodSearchProblem"
layoutName: "trickySearch"
layout: """
%%%%%%%%%%%%%%%%%%%%
%. ..% %
%.%%.%%.%%.%%.%% % %
% P % %
%%%%%%%%%%%%%%%%%% %
%..... %
%%%%%%%%%%%%%%%%%%%%
"""
# One point always, an extra point for each
# threshold passed.
basePoints: "1"
gradingThresholds: "15000 12000 9000 7000"