Currently the only way to add a game file to the program is to manually construct the decision tree in JSON and then spell out the filename to the program during runtime to play that game. This is obviously very unnatural and the game as a whole can benefit from being able to easily find out existing games and create game files from within the program itself. The OS module can be used to scan for .txt or .json files within the same directory as the .py file and list them out for the player to choose from. However, JSON serialization of the current implementation of the decision tree is beyond my skill level and thus remains a major obstacle for dumping the object to a file.
pls add this feture thanka.
Currently the only way to add a game file to the program is to manually construct the decision tree in JSON and then spell out the filename to the program during runtime to play that game. This is obviously very unnatural and the game as a whole can benefit from being able to easily find out existing games and create game files from within the program itself. The OS module can be used to scan for .txt or .json files within the same directory as the .py file and list them out for the player to choose from. However, JSON serialization of the current implementation of the decision tree is beyond my skill level and thus remains a major obstacle for dumping the object to a file. pls add this feture thanka.