Skip to content

Commit 0c72617

Browse files
author
Frankie Robertson
committed
Add item_criteria to the stateful interface
1 parent ca7f042 commit 0c72617

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Stateful.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ function next_item end
1313

1414
function ranked_items end
1515

16+
function item_criteria end
17+
1618
function add_response! end
1719

1820
#function add_responses! end
@@ -75,6 +77,11 @@ function next_item(config::StatefulCatConfig)
7577
end
7678

7779
function ranked_items(config::StatefulCatConfig)
80+
return sortperm(compute_criteria(
81+
config.rules.next_item, config.tracked_responses, config.item_bank))
82+
end
83+
84+
function item_criteria(config::StatefulCatConfig)
7885
return compute_criteria(
7986
config.rules.next_item, config.tracked_responses, config.item_bank)
8087
end

0 commit comments

Comments
 (0)