All Downloads are FREE. Search and download functionalities are using the official Maven repository.

APT.all-test.dice-model-bot-new.Impasse_Tie.evaluate-operator.compute-exact-difference.soar Maven / Gradle / Ivy

sp {evaluate-operator*propose*compute-exact-difference
   (state  ^name evaluate-operator
             -^estimated-total
              ^top-state.probabilities false
              ^superstate.operator.superoperator.name exact)
-->
   ( ^operator  + =)
   ( ^name compute-exact-difference)
}

sp {apply*compute-exact-difference*bid
   (state  ^operator 
              ^top-state 
              ^dice-counts.dice-count  )
   ( ^name compute-exact-difference)
   ( ^io.input-link.state )
   ( ^last-bid )
   ( ^face 
          ^count )
   ( ^face unknown
          ^count )
   ( ^action bid
         ^face 
         ^player.id 
         ^multiplier )
-->
   (write (crlf) |  Exact: |  | |  |'s. Estimated total: | (+ (/  6) ) | Bid Difference: | (- (+ (/  6) ) ))
   ( ^estimated-total (+ (/  6) )
        ^bid-difference (float (- (+ (/  6) ) )))
}