Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  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
 

src/t/i/tictascii-0.0.3/tictascii/ticlib/tests.py   tictascii(Download)
from itertools import chain
import unittest
 
from tictascii.ticlib.base import Board, Tournament
from tictascii.ticlib.exceptions import MarkerOutOfRange, MarkerExists
    def setUp(self):
        self.board = Board()
        self.player = ComputerPlayer('X')
 
    def testBoardToString(self):
    def testMakeAMoveAsUnimplemented(self):
        board = Board()
        with self.assertRaises(NotImplementedError):
            self.player.make_a_move(board)
 
    def setUp(self):
        self.player = ComputerPlayer('O')
        self.board = Board()
 
    def testMakeAMove(self):