This repository has been archived on 2025-08-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
GGS/games/tic-tac-toe/player.py
Kallfaktorn 71fa6f30ba Moved the parts of network out of server.
Partly added extensions to tic-tac-toe py.
2011-02-04 14:10:23 +01:00

15 lines
331 B
Python

from pygame.mouse import get_pos
from point import Point
class Player(object):
def __init__(self, id, shape, board):
self.shape = shape
self.board = board
self.id = id
def turn(self):
#Ask mouse for position
board.make_turn(Point(get_pos()[0],get_pos()[1]))