Class ReplayedEpisode

java.lang.Object
edu.wisc.game.sql.Episode
edu.wisc.game.sql.ReplayedEpisode

public class ReplayedEpisode
extends Episode
Built on top of an Episode object, a ReplayedEpisode is created during the analysis of transcripts, in order to recreate the episode's events step by step. This is primarily needed so that we can compute the p0(D) value for each move of the episode.
  • Constructor Details

  • Method Details

    • computeP0

      public double computeP0​(Episode.Pick nextMove, int code)
      Computes the probability of success for a random pick or random move made by a frugal player. A call to this method should precede a call to accept(). As of 2021-09-18, the approach is that "P0 for a pick" is only used for successful picks (i.e. when there is incontrovertible evidence that the player wanted to do a pick). For failed picks, we use the "P0 for a move", since it's believed that the player most likely intended to attempt a move, but the GUI converts an move attempt on an immovable piece to a failed pick.
      Parameters:
      nextMove - The pick/move attempt the value of p0 before which (for which) we want to compute. This pick or move has been read from the transcript, and contains the success code, which we can use to interpret what the random player may have wanted here. The nextMove.code field is not set yet, because it will only be set during an actual replay (the Episode.accept() call).
      code - The historical acceptance code for this attempt, as read from the transcript
    • accept

      public int accept​(Episode.Pick pick)
      Description copied from class: Episode
      One normally should not use this method directly; use doPick() or doMove() instead.
      Overrides:
      accept in class Episode