From 83f82cce6e0886f25e49e059737cc705e7d26b1c Mon Sep 17 00:00:00 2001 From: TRC9696 Date: Mon, 30 Jan 2023 16:49:47 +0100 Subject: [PATCH] Added player turn methods --- src/main/java/game/StartTicTacToeGame.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/game/StartTicTacToeGame.java b/src/main/java/game/StartTicTacToeGame.java index fe48596..07e09b2 100644 --- a/src/main/java/game/StartTicTacToeGame.java +++ b/src/main/java/game/StartTicTacToeGame.java @@ -133,6 +133,18 @@ public class StartTicTacToeGame implements ActionListener{ } + + public void player1Turn() { + player1Turn = true; + player2Turn = false; + + } + + public void player2Turn() { + player1Turn = false; + player2Turn = true; + + } @Override