Sorry – that’s a little too much code for a quick glance.
Perhaps point us to an example of the issue you are wondering about.
But since you asked, I did notice this:
class ChessOpenings:
"""Create a storage for chess openings."""
def storage(self):
...
# [big dict hard-coded here]
That’s a quite unnecessary class. Python does not need a class as a placeholder for anything. And by hard coding that dict in the storage method, you’re actually making a new one every timethat method is called. As it’s apparetnly static, that’s totally unneccesy.
Maybe jsut a simple value in the module:
CHESS_OPENINGS = {put the big dict here}
It’s a convention to use ALL_CAPS for constants, which this appears to be, but you can call it anything.