1-JUL-2024
2242
Got the Ratatui UI roughed in; also sketched out a plan for the debugging interface/engine-tournament-manager thing. I’m off on a rabbit trail, but it seems fun so probably worth doing.
The first thing I want to do is get some sort of widget built to display a chessboard, I don’t think that should be too difficult, since I’ve got half an implementation in the Debug impl for Ply.
I can’t say I know enough about ratatui so far to have an opinion, but I’ll say for sure that the
markup-in-Rust thing is not my favorite. Copilot actually helps a bit here, these APIs kind of suck
to remember; I frequently get simple transpotition errors where I miscapitalize or whatever. Copilot
eventually figures out what I’m trying to do and at least makes the mistakes for me, so I’m just
fixing what it fucks up instead of me making the mistake and feeling bad about it.
2307
Futzing more, I think it makes sense to include all the UI stuff in the library proper, and maybe just gate it by a feature someday. I can implement widgets directly against the types in the library, which seems nicer than having to wrap things in a newtype to widget them.
I’m definitely not quite doing it right w/ rendering, this is because I’m procrastinating reading the rest of this tutorial.