vooga.games.tronupdate.util
Class AI_0

java.lang.Object
  extended by vooga.games.tronupdate.util.AI
      extended by vooga.games.tronupdate.util.AI_0

public class AI_0
extends AI


Field Summary
 
Fields inherited from class vooga.games.tronupdate.util.AI
myPlayer
 
Constructor Summary
AI_0(Player player)
           
 
Method Summary
 void down()
          performs down turning
 void handleLeftRight()
          This methods handles the upcoming left/right turn by taking into account the previous turns.
 void handleUpDown()
          This method handles the upcoming up/down turning by taking into account the previous turns.
 void left()
          performs left turning
 void randomLeftRight()
          This method randomly decides whether to turn left or right.
 void randomUpDown()
          This methods randomly decides whether to turn up or down
 void right()
          performs right turning
 void up()
          performs up turning
 void update(Grid[][] grid, int row, int col, Direction direction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AI_0

public AI_0(Player player)
Method Detail

update

public void update(Grid[][] grid,
                   int row,
                   int col,
                   Direction direction)
Specified by:
update in class AI

handleLeftRight

public void handleLeftRight()
This methods handles the upcoming left/right turn by taking into account the previous turns.


handleUpDown

public void handleUpDown()
This method handles the upcoming up/down turning by taking into account the previous turns.


randomLeftRight

public void randomLeftRight()
This method randomly decides whether to turn left or right.


randomUpDown

public void randomUpDown()
This methods randomly decides whether to turn up or down


down

public void down()
performs down turning


left

public void left()
performs left turning


right

public void right()
performs right turning


up

public void up()
performs up turning