Class PerformanceRating

java.lang.Object
  |
  +--PrintSuperClass
        |
        +--PerformanceRating
All Implemented Interfaces:
java.lang.Cloneable

public class PerformanceRating
extends PrintSuperClass
implements java.lang.Cloneable

Performance Rating Maintains key statistics for singleUserTestMode and headToHead combat

singleUserTestMode sets the following variables:
worstMoves, bestMoves, avgMoves, performance, coverage and distribution

headToHead combat will set win, loss, moves, timeLog;

Only player owner has access to worstBoard

VitalStatistics has private object skills that points to class Performance rating
class is clone able so acccess by player to performance rating variables is by either get or clone

Warnings: this was originally part of PlayerType, thereby PlayerType & Performance are intertwined


Field Summary
 double avgMoves
           
 long badMoves
           
 int bestMoves
           
 double coverage
           
 int[] distribution
          First distribution 0..100, 525/50 = 10.5, last 625..maxMoves
 long loss
           
 int moves
          Number of moves so far in a game
 double performance
           
 int score
           
 int seriesVictories
          number of victories in HeadtoHead competition
 long timeLog
          time to make guesses stored as milliseconds
 long totalMoves
           
 long win
           
 int worstMoves
           
 
Constructor Summary
PerformanceRating()
           
 
Method Summary
 java.lang.Object clone()
           
 void copy(PerformanceRating saved)
           
 void print(java.io.PrintWriter pw)
           
 void printDistribution()
           
 void println(java.io.PrintWriter pw)
           
 double probability(int moves)
           
 boolean setPerformanceRating()
           
 void startTimer()
           
 void stopTimer()
          Timer is stopped in checkGuess
 void updateDistribution(int moves)
           
 
Methods inherited from class PrintSuperClass
print, print, print, println, println, println
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moves

public int moves
Number of moves so far in a game

worstMoves

public int worstMoves

bestMoves

public int bestMoves

distribution

public int[] distribution
First distribution 0..100, 525/50 = 10.5, last 625..maxMoves

seriesVictories

public int seriesVictories
number of victories in HeadtoHead competition

score

public int score

badMoves

public long badMoves

win

public long win

loss

public long loss

totalMoves

public long totalMoves

avgMoves

public double avgMoves

coverage

public double coverage

performance

public double performance

timeLog

public long timeLog
time to make guesses stored as milliseconds
Constructor Detail

PerformanceRating

public PerformanceRating()
Method Detail

copy

public void copy(PerformanceRating saved)

print

public void print(java.io.PrintWriter pw)
Overrides:
print in class PrintSuperClass

println

public void println(java.io.PrintWriter pw)
Overrides:
println in class PrintSuperClass

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

startTimer

public void startTimer()

stopTimer

public void stopTimer()
Timer is stopped in checkGuess

probability

public double probability(int moves)

updateDistribution

public void updateDistribution(int moves)

printDistribution

public void printDistribution()

setPerformanceRating

public boolean setPerformanceRating()