For better or worse, I've coded Solitaire online using an old fashioned coding style, loosely based on the way games *used* to be structured.
To be fair, back in the day I was coding in C, and frequently used pointers referring to structures containing data. This was common in those days. and was often a rather better structure than I have ended up creating here.
Regardless, the code works pretty well, doesn't rely on any external libraries and it is easy to add further games.
I'm not rushing with this as I want to add many more games of Solitaire/Patience to this site before moving on, but I'm thinking about quietly learning more about Typescript in the background.