cz.nipax.hippo.pexeso
Class AI_forgetting.Piece

java.lang.Object
  extended by cz.nipax.hippo.pexeso.AI_forgetting.Piece
Enclosing class:
AI_forgetting

 class AI_forgetting.Piece
extends java.lang.Object

Store informations about one position in playground.


Field Summary
(package private)  int id
          Id of card. -1 == don't know
(package private)  int last
          Turn when the piece was shown for the last time.
(package private)  int revc
          How many times the piece was revieled.
(package private)  boolean valid
          Is the card (still) there?
 
Constructor Summary
AI_forgetting.Piece()
          Simple constructor.
 
Method Summary
 void update(int ID)
          Updates info about piece.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

int id
Id of card. -1 == don't know


revc

int revc
How many times the piece was revieled.


last

int last
Turn when the piece was shown for the last time.


valid

boolean valid
Is the card (still) there?

Constructor Detail

AI_forgetting.Piece

AI_forgetting.Piece()
Simple constructor.

Method Detail

update

public void update(int ID)
Updates info about piece. Call this if you know what card is on position represented by this piece and want to store the info.

Parameters:
ID - to store