|
|
@ -24,7 +24,7 @@ const getCellHtml = ({ |
|
|
|
const { isDisabled, nextGameState, text } = getCellDisplayData({ gameState, currentOutcome, row, column }); |
|
|
|
const { isDisabled, nextGameState, text } = getCellDisplayData({ gameState, currentOutcome, row, column }); |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<button {...getSubmitAttributes(key, nextGameState)} disabled={isDisabled}> |
|
|
|
<button {...getSubmitAttributes(key, nextGameState)} disabled={isDisabled} className={`square-${text}`}> |
|
|
|
{text} |
|
|
|
{text} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
); |
|
|
|
); |
|
|
@ -55,7 +55,7 @@ export const getBoardgameHtml = (key: string, gameState: BoardgameStateType, rul |
|
|
|
Current player: <span class="current-player-name">{gameState.currentPlayerName}</span> |
|
|
|
Current player: <span class="current-player-name">{gameState.currentPlayerName}</span> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<table class="game-board"> |
|
|
|
<table class="game-board-table"> |
|
|
|
<tbody class="game-board"> |
|
|
|
<tbody class="game-board"> |
|
|
|
{sequence(gameState.rows).map((row) => ( |
|
|
|
{sequence(gameState.rows).map((row) => ( |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|