Did I find the right examples for you? yes no

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

src/p/y/pythello-0.1/pythello/servertk.py   pythello(Download)
 
from boardtk import BoardTk, S, H, W, SBH
from player import AI, HumanTk
from server import Server
 
                assert playerstr.startswith('AI '), 'Got unexpected player type'
                depth = int(playerstr.split()[-1])
                setattr(self, player, AI(color, self.board, depth=depth))
        self.togglepc(False)
        self.board.setstatusl("black's turn")

src/p/y/pythello-0.1/pythello/server.py   pythello(Download)
 
from board import Board
from player import AI
 
 
    def setplayers(self):
        self.player1 = AI('black', self.board, depth=self.depthblack)
        self.player2 = AI('white', self.board, depth=self.depthwhite)
        self.startgame()