I am currently making 2048 and am having trouble with creating a new block whenever a move is made.
I made a list storing all the blocks there are, within the list there objects:
class Blocks:
~~~~~~~ code ~~~~~~~~~
block1 = Blocks()
block2 = Blocks()
block_list = [block1, block2]
The issue is that it works perfectly when the blocks are pre-written, but I can not make a new block while the game is already running, is there any way to do this? Thank you in advance, stay safe :)