Feature Creep 2026, 14 - Bookle (Title WIP) - Quick Grid Class
Last time I noticed I would probably like to have a grid class, so I might as well hammer out a quick one here. I just decided to take most of the structure out of the grid class, just because of how I wrote the functions that were meant to interact with it.
class Grid():
def __init__(self):
self.a1 = ""
self.a2 = ""
self.a3 = ""
self.b1 = ""
self.b2 = ""
self.b3 = ""
self.c1 = ""
self.c2 = ""
self.c3 = ""
That's also basically it, I guess. It doesn't need to do anything itself, just serve as a structured way to save and retrieve data. Perhaps a verify function, but that's about it, and that one would be very easy and repetitive to write.
Perhaps a technical note, since this was barely any implementation at all: I decided to give PyScript a try, which is why the front-end logic is in python. The next few steps will be more JS-adjacent, because now I'd need to draw the grid. I'm planning on going with ReactJS again, just to get some practice, and the upside is that once I have the front-end up for the Math-Trainer, I might as well recycle the boring parts for this project as well.