From 5513be4eb518a48774620a4f5ab34e1ed08a7387 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Wed, 3 Jan 2024 17:16:32 +0200 Subject: [PATCH] feat(game): add method templates --- src/game/game.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/game/game.py b/src/game/game.py index 988fe36..8b241e9 100644 --- a/src/game/game.py +++ b/src/game/game.py @@ -1,7 +1,7 @@ import random import numpy as np -from utils import Config +from utils import Config, Direction class Game2048: @@ -21,3 +21,12 @@ class Game2048: self.board[row, col] = random.choices( [2, 4], weights=Config.tile.probability )[0] + + def move(self, direction: Direction) -> None: + pass + + def merge(self, row: np.ndarray) -> np.ndarray: + pass + + def display(self) -> None: + pass