Did I find the right examples for you? yes no

All Samples(73)  |  Call(0)  |  Derive(0)  |  Import(73)
This module implements the Player (Human or AI), which is basically an
object with an ``ask_move(game)`` method

src/i/n/incantus-HEAD/src/engine/Match.py   incantus(Download)
    def match(self, player):
        import Player
        return isinstance(player, Player.Player) and super(PlayerMatch,self).match(player)
    def __str__(self):
        return "Player"
    def match(self, player):
        import Player
        return isinstance(player, Player.Player) and player in self.controller.opponents and super(OpponentMatch,self).match(player)
    def __str__(self):
        return "Opponent"

src/c/h/Checkers-HEAD/CheckersGUI.py   Checkers(Download)
from gettext import gettext as _
 
import Player
 
class CheckersGUI:

src/c/h/Checkers-HEAD/checkers.py   Checkers(Download)
from SquareState import SquareState
from Move import Move
import Player
import time