cz.nipax.hippo.pexeso
Class AI_normal

java.lang.Object
  extended by cz.nipax.hippo.pexeso.AI
      extended by cz.nipax.hippo.pexeso.AI_random
          extended by cz.nipax.hippo.pexeso.AI_forgetting
              extended by cz.nipax.hippo.pexeso.AI_normal
Direct Known Subclasses:
AI_enhanced

public class AI_normal
extends AI_forgetting

Implementation of "classic" inteligence. In fact it is same as forgetting, but doesn't use the function with forgetting :-)


Nested Class Summary
 
Nested classes/interfaces inherited from class cz.nipax.hippo.pexeso.AI_forgetting
AI_forgetting.Piece
 
Field Summary
 
Fields inherited from class cz.nipax.hippo.pexeso.AI_forgetting
m_field, m_lastID, m_turn, m_x, m_y, my_turn
 
Fields inherited from class cz.nipax.hippo.pexeso.AI
DEBUG, m_killed, m_pg, MOVESLEEP
 
Constructor Summary
AI_normal(Playground pg)
           
 
Method Summary
 java.lang.String getname()
          Get name of AI
protected  boolean try_turn(int x, int y)
          Just removed random moves around
 
Methods inherited from class cz.nipax.hippo.pexeso.AI_forgetting
first_random_move, first_turn, ivalidate, onturn, revealed, second_random_move, second_turn, thread_turn
 
Methods inherited from class cz.nipax.hippo.pexeso.AI_random
random_move
 
Methods inherited from class cz.nipax.hippo.pexeso.AI
kill, println, setSleep, userinput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AI_normal

public AI_normal(Playground pg)
Method Detail

getname

public java.lang.String getname()
Get name of AI

Overrides:
getname in class AI_forgetting
Returns:
string with name

try_turn

protected boolean try_turn(int x,
                           int y)
Just removed random moves around

Overrides:
try_turn in class AI_forgetting
Parameters:
x - coordinate of wanted move
y - coordinate of wanted move