PDA

View Full Version : Text Game Need Help (Python)



TextG
January 6th, 2013, 04:12 AM
I am in the middle of creating a text game with python. Is there a command I can use to close the terminal window when a character dies?

zombifier25
January 6th, 2013, 05:53 AM
I wouldn't do that if I were you. I would just make the program exit.

Bucky Ball
January 6th, 2013, 06:02 AM
Thread moved to Programming Talk

greenpeace
January 7th, 2013, 01:02 PM
I am in the middle of creating a text game with python. Is there a command I can use to close the terminal window when a character dies?

Hey!

Rather than close the program, why not return them to a start screen, with the option to start again?

The command "exit" will close the program, but it won't necessarily close the terminal.

How does the user start the game?
How are you opening the terminal?

Cheers!

d347hm4n
January 8th, 2013, 02:49 PM
Hello,

Please give a small example of what you are doing and what you would like to do.

We don't know what you are doing so we aren't able to advise you.

d3