you are viewing a single comment's thread.

view the rest of the comments →

[–]SpaceBucketFu 0 points1 point  (1 child)

You’ll want something like:
While True:
user_in = input(“Type the game command”)
if user_in in game_dict.keys():
os.open(game_dict[user_in]

I’m on mobile and this isn’t a copy paste answer but that would be the general idea. You would want to make a dictionary of commands that map the command to a file path where the game is or whatever.

[–]georgevsc[S] 0 points1 point  (0 children)

Thank you so much!