X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=scribe%2Fscribe.jsx;h=7b68ff05afe8ac16d78b74d6b74d49b7f4fe73cf;hp=78155949f782174a6ff40d2a80c7b5948f715868;hb=262b36e22be80ba638872f837332f79aa8e8a8c6;hpb=e7e45fef427d3d76f7f88ca919c73e28de5a301b diff --git a/scribe/scribe.jsx b/scribe/scribe.jsx index 7815594..7b68ff0 100644 --- a/scribe/scribe.jsx +++ b/scribe/scribe.jsx @@ -165,6 +165,39 @@ function PlayerInfo(props) { ); } +function Glyph(props) { + + const glyph_dots = []; + + for (let row = 0; row < 3; row++) { + for (let col = 0; col < 3; col++) { + if (props.squares[3 * row + col]) { + let cy = 10 + 20 * row; + let cx = 10 + 20 * col; + glyph_dots.push( + + ); + } + } + } + + return (
+ {props.name} +
+ + + {glyph_dots} + + +
+
+ ); +} + function Square(props) { let className = "square"; @@ -415,6 +448,122 @@ class Game extends React.Component { onClick={(i,j) => this.handle_click(i, j, first_move)} /> + , +
+ + + + + + + + + + + + + + + + + + +
]; }