Sep-19-2018, 03:20 AM
Please use Python tags when posting code. See the BBCode link in my signature below for instructions.
I'm not totally sure what the tree of questions is going to look like, but you might think about something like this:
We often have to tell new programmers to use more descriptive variable names. That's not a problem here, but I think you're over doing it. I seen guidelines saying that variable names start to be a problem when they are longer than 12 to 15 characters. Take offset_left_or_right. It seems you are just adding the possible values. Unless it needs to be clarified that it's not some other offset, I would just call it offset.
I'm not totally sure what the tree of questions is going to look like, but you might think about something like this:
offset_left_or_right = input("Which side of the transition is offset? Left or Right? ") query = "Is bottom {} going up to the left or right? " bot_corner_to_left_or_right = input(query.format(offset_left_or_right))This allows you to modify the question being asked, and store where the bottom corner is going, regardless of which corner it is.
We often have to tell new programmers to use more descriptive variable names. That's not a problem here, but I think you're over doing it. I seen guidelines saying that variable names start to be a problem when they are longer than 12 to 15 characters. Take offset_left_or_right. It seems you are just adding the possible values. Unless it needs to be clarified that it's not some other offset, I would just call it offset.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures