diff --git a/src/App.tsx b/src/App.tsx
index 77feee1..2e483ab 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -412,17 +412,27 @@ function GameBoard({ game }: { game: Game }) {
let player2 = game.getPlayerById(1);
let buttons1 = (<>>)
let buttons2 = (<>>)
- if(summoningCard+1){
+ if(phase==0){
+ if(summoningCard+1){
+ if(currentPlayer.id==0){
+ buttons1 =
+ }
+ else{
+ buttons2 =
+ }
+ }
+ }
+ else if(phase==1){
if(currentPlayer.id==0){
- buttons1 =
+ buttons1 =
}
else{
- buttons2 =
+ buttons2 =
}
-
}
+
return (
@@ -473,12 +483,12 @@ function GameBoard({ game }: { game: Game }) {
-
-
-
{buttons1}
+
+
+
);
@@ -511,6 +521,29 @@ function SummoningButtons({cardPos, game, setSummonState, hand, setHandState, se
)
}
+function AttackingButtons({player}: {player: Player}){
+ let playerid = player.id;
+
+ function handle(boardPos: number, playerid: number){
+ //game.board.getBoardPosByOwnerId(playerid, boardPos);
+ }
+ return (
+
+
+
+
+
+
+ )
+}
/**
* has a block of scrollable text showing player actions and shows turn and phase
* @returns markup that displays the gamelog in the browser
@@ -524,13 +557,23 @@ function GameLog({
phase: number;
currentPlayer: Player;
}) {
+ let phaseName;
+ if(phase==0){
+ phaseName="Main phase";
+ }
+ else if(phase==1){
+ phaseName="Battle phase";
+ }
+ else if(phase==2){
+ phaseName="End phase";
+ }
return (
<>
{log}
Turn: {turn}
- Phase: {phase}
+ Phase: {phaseName}
Turn Player: {currentPlayer.username}