Added the boardgame tic-tac-toe without winning conditions, written entirely in Python.
This commit is contained in:
parent
0590fa6ca1
commit
affcb739b4
28 changed files with 448 additions and 0 deletions
9
games/tic-tac-toe/mousepress.py
Normal file
9
games/tic-tac-toe/mousepress.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from input import Input
|
||||
|
||||
class MousePress(Input):
|
||||
def __init__(self, id, function):
|
||||
Input.__init__(self, id, function)
|
||||
|
||||
def update(self,state):
|
||||
if state == "Down":
|
||||
self.fun()
|
Reference in a new issue