From f6870cf5596375bf07be2f611f538d92f7f3cae8 Mon Sep 17 00:00:00 2001 From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de> Date: Tue, 13 May 2025 19:17:12 +0200 Subject: [PATCH] ue4, tictactoe --- ub-3/tictactoe.test.py | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/ub-3/tictactoe.test.py b/ub-3/tictactoe.test.py index 9c37cf9..04a165d 100644 --- a/ub-3/tictactoe.test.py +++ b/ub-3/tictactoe.test.py @@ -1 +1,16 @@ -import +from tictactoe import pruefe_comination, has_spieler_gewonnen, PL1, PL2, EMPTY + + +test_board = [ + [PL1, PL1, PL1], + [EMPTY, PL2, EMPTY], + [EMPTY, PL2, EMPTY] +] + + +result = pruefe_comination( (0,0,"hvd"), test_board ) + +print(result) + +result = has_spieler_gewonnen(PL1, test_board) +print(result) -- Gitblit v1.10.0-SNAPSHOT