X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=scribe%2Fscribe.jsx;h=ae05690dd42febe119b2541ab37b8e7ee6bf33f9;hp=d66fc049b9a90b7c17c94ad39942b6d03312f17a;hb=ece82f79122ffd6f1e3c8fb0d0dac7daae824b92;hpb=f44e7e5f69e19ceb1909f371eb88e44e736990ee diff --git a/scribe/scribe.jsx b/scribe/scribe.jsx index d66fc04..ae05690 100644 --- a/scribe/scribe.jsx +++ b/scribe/scribe.jsx @@ -353,10 +353,15 @@ function MiniGrid(props) { function grid_square(j) { const value = props.squares[j]; const last_move = props.last_moves.includes(j); + + /* Even if the grid is active, the square is only active if + * unoccupied. */ + const square_active = (props.active && (value === null)); + return ( props.onClick(j)} />