X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=scribe%2Fscribe.jsx;h=1a2af6b14db47457d89385f5001623d7f6cb7d30;hb=6aafb823cdc12d7404ae56cabce63d1dd8478922;hp=548a0edc826c44258bf05af1e2cdc73325d7da18;hpb=3eded2a202f7b3d636e4b76e3c9aa0c32e2bae3f;p=lmno.games diff --git a/scribe/scribe.jsx b/scribe/scribe.jsx index 548a0ed..1a2af6b 100644 --- a/scribe/scribe.jsx +++ b/scribe/scribe.jsx @@ -329,18 +329,29 @@ function Glyph(props) { function Square(props) { let className = "square"; - if (props.value) { + if (props.value.symbol) { className += " occupied"; } else if (props.active) { className += " open"; } + if (props.value.glyph) { + if (props.value.symbol === '+') + className += " glyph-plus"; + else + className += " glyph-o"; + } + + if (props.last_move) { + className += " last-move"; + } + const onClick = props.active ? props.onClick : null; return (