Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/pythello-0.1/pythello/boardtk.py   pythello(Download)
            self.setstatusl('%s cannot move' % self.color1)
        Board.switchplayers(self, printboard=printboard, lostturn=lostturn)
        self.setstatusl("%s's turn" % self.color1)
        self.setstatusr('black: %2d  white: %2d' % self.countpieces())

src/p/y/pythello-0.1/pythello/player.py   pythello(Download)
                    return self.evalboard(board), None
                boardc = Board(other=board)
                value = -self.minimax(boardc, depth-1, -beta, inf)[0]
                return value, None
            boardc = Board(other=board) # "copy constructor"
            boardc.makemove(r, c, flip)
            value = -self.minimax(boardc, depth-1, -beta, bestval and -bestval or inf)[0]
            if not bestval or value > bestval: