Coding 2025-02-12
I wasn't quite ready to face the next rework that MOTR needs, so I spent a bit of time noodling with some code that I hadn't realized that I hadn't touched in almost a year.
(I'm sure I remember working on a more recent version, but rg can't find it, so...)
This project is around modeling cards, and I recently realized that there are things that share "logical structure" with cards without adhering to literally the same form factor. This means I've got a few things that I'd like to implement that shouldn't be terribly difficult with what I have (like mahjong and related sets of tiles), but I was thinking today about dominos. They've got a pair of ranks, and usually are treated symmetrically, which means that they need a different indexing operation than I've implemented before, to reverse the triangular number and get the, um, remainder. To get this to work, there's something about adding 0.25 and taking a square root and adding or subtracting 0.5, but I don't want to rush into implementing it before I establish some basic expectations.
Anyway, I meant to get to bed sooner, and I'll have problems if I don't do so soon, so I'm cutting this off here and now.
Good night.