Back to index

gcompris  8.2.2
Public Member Functions | Public Attributes
connect4p.minmax.Node Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__

Public Attributes

 board
 value
 childs
 move
 player

Detailed Description

Definition at line 51 of file minmax.py.


Constructor & Destructor Documentation

def connect4p.minmax.Node.__init__ (   self,
  board,
  move,
  player 
)

Definition at line 52 of file minmax.py.

00052 
00053   def __init__(self, board, move, player):
00054     self.board = board
00055     #self.parent = parent
00056     self.value = 0
00057     self.childs = []
00058     self.move = move
00059     self.player = player


Member Function Documentation

Definition at line 60 of file minmax.py.

00060 
00061   def __repr__(self):
00062     if self.childs > 1:
00063       number=0
00064       for child in self.childs:
00065         number=number+1
00066       return "Has %s child(s)" % number
00067     return "STATE"


Member Data Documentation

Definition at line 53 of file minmax.py.

Definition at line 56 of file minmax.py.

Definition at line 57 of file minmax.py.

Definition at line 58 of file minmax.py.

Definition at line 55 of file minmax.py.


The documentation for this class was generated from the following file: