CSCI 4150: Introduction to Artificial Intelligence, Fall 2003 |
To use the text's exploration function, you need this procedure instead of get-visits-element which is documented in the assignment handouts. The get-visits-element returns the number times you have visited a state, regardless of what action was taken to get you there.
Another way to think of it is that get-visits-element records the number of times you transitioned into the "action" state state-num, while get-action-state-visits records the number of times you transitioned out of a "hit" state under the given action.
(set! HIT-UTILITIES new-utilities-vector)or with a list, do the following:
(set! HIT-UTILITIES (list->vector new-utilities-list))
Prints a narration of each hand. If this is set to #f, nothing will be printed to the screen (except possibly the progress of the match).
If print-narration is #f, this will print out a one-line message every print-match-progress hands. With the default value of 10, it will print out a message every ten hands. If you set it to any value that is not a positive integer, it will not print any messages.
If print-narration is #t, this will print what happens when your player plays its hand.
If print-narration is #t, this will print what happens when the dealer plays its hand.
If print-narration is #t, this will print a summary of the hand, including whether the player won or lost.
(save-learning fname)The filename should be a double-quote delimited string, and you should use the extension ".scm"