In [2]:
import game
import time
from util import getValue

%load_ext autoreload
%autoreload 2


The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload

In [27]:
import agent
print agent.Bird.__class__


<type 'type'>

In [ ]:
g = game.Game()
g.start()


    A     B     C     D     E     F     G     H   

8      |     |     |     |     |     |     |     |  8 
  -----------------------------------------------
7      |     |     |     |     |     |     |     |  7 
  -----------------------------------------------
6      |     |     |     |     |     |     |     |  6 
  -----------------------------------------------
5      |     |     |     |     |     |     |     |  5 
  -----------------------------------------------
4      |     |     |     |     |     |     |     |  4 
  -----------------------------------------------
3      |     |     |     |     |     |     |     |  3 
  -----------------------------------------------
2      |     |     |  L  |     |     |     |     |  2 
  -----------------------------------------------
1   B  |     |  B  |     |  B  |     |  B  |     |  1 
  -----------------------------------------------
Larva turn
Enter move >> 

In [29]:
list(5)


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-29-369ddcb20c00> in <module>()
----> 1 list(5)

TypeError: 'int' object is not iterable

In [22]:
from board import Board
b = Board()
b.display()
b.getBasicHeuristic()


    A     B     C     D     E     F     G     H   

8      |     |     |     |     |     |     |     |  8 
  -----------------------------------------------
7      |     |     |     |     |     |     |     |  7 
  -----------------------------------------------
6      |     |     |     |     |     |     |     |  6 
  -----------------------------------------------
5      |     |     |     |     |     |     |     |  5 
  -----------------------------------------------
4      |     |     |     |     |     |     |     |  4 
  -----------------------------------------------
3      |     |     |     |     |     |     |     |  3 
  -----------------------------------------------
2      |     |     |  L  |     |     |     |     |  2 
  -----------------------------------------------
1   B  |     |  B  |     |  B  |     |  B  |     |  1 
  -----------------------------------------------
Out[22]:
-188