Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tRecent = {
- {"water",15}
- } -- What is recently heard about
- local tFrequent = {
- {"water",15},{"food",10},{"home",5},{"work",20}
- } -- What is frequently heard about {name of item heard about, how many times it has been mentioned}
- local tFirstRef = {
- }-- The first thing that comes to mind
- local sLearnBool = 1 --Lean towards frequency or recency for equal averages (1 is frequency, 2 is recency)
- function update()
- table.sort(tFrequent,function (a,b) return a[2] > b[2] end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement