Hacker News new | ask | show | jobs
by tptacek 2778 days ago
That's funny, I built the same thing for our Slack (I wish I'd known about notnil/chess; I tediously wrote out the rules for chess). I managed to do without assets, though, except for a typeface that had chess piece glyphs. :)
1 comments

I first started down the text path, but not being able to "highlight" previous plays and check turned me towards generating graphics instead.
Oh, it's not text; I render a PNG too. I just use the glyphs from the typeface for the pieces, and draw the board in code.
I think I tried the same thing, but shipping with the font included presented some licensing concerns. Also, I had a hard time getting it to line up exactly how I wanted, so ultimately I went on to assets.