Did I find the right examples for you? yes no

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

src/t/i/tictascii-0.0.3/tictascii/ticli.py   tictascii(Download)
#!/usr/bin/env python
 
from tictascii.ticlib.players import HumanPlayer, ComputerPlayer
from tictascii.ticlib.base import Tournament, Board
 
 
    if no_players is 1:
        return (HumanPlayer('X'), ComputerPlayer('O'))
    else:
        return (HumanPlayer('X'), HumanPlayer('O'))

src/t/i/tictascii-0.0.3/tictascii/ticlib/tests.py   tictascii(Download)
from tictascii.ticlib.base import Board, Tournament
from tictascii.ticlib.exceptions import MarkerOutOfRange, MarkerExists
from tictascii.ticlib.players import ComputerPlayer, HumanPlayer, Player
 
 
class BoardTest(unittest.TestCase):
 
    def setUp(self):
        self.board = Board()
        self.player = ComputerPlayer('X')
    def setUp(self):
        self.player = ComputerPlayer('O')
        self.board = Board()
 
    def testMakeAMove(self):
    def setUp(self):
        self.player1 = ComputerPlayer('X')
        self.player2 = ComputerPlayer('O')
        self.players = (self.player1, self.player2)
        self.tournament = Tournament(self.players)