first commit

This commit is contained in:
=
2024-02-07 14:24:48 +01:00
commit ff58b527de
7 changed files with 374 additions and 0 deletions

15
tile.py Normal file
View File

@@ -0,0 +1,15 @@
from tuple_addition import tuple_add as tAdd
class Tile:
def __init__(self, coord_black, coord_white, direction):
self.coord_black = coord_black
self.coord_white = coord_white
self.direction = direction
def shift(self):
self.coord_black = tAdd(self.coord_black, self.direction)
self.coord_white = tAdd(self.coord_white, self.direction)
return (self.coord_black, self.coord_white)