[Tutor] Repeat Until Dead

Chris “Kwpolska” Warrick kwpolska at gmail.com
Wed Jun 26 20:30:56 CEST 2013


On Wed, Jun 26, 2013 at 8:23 PM, Jack Little <jacklittlemc at yahoo.com> wrote:
> In a combat system, how would I have a certain raw_input repeat until the
> enemy is dead?
>
>
> Thanks a ton,
> Jack

Something like this:

while enemyalive:
    raw_input('Action? ')

--
Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
stop html mail                | always bottom-post
http://asciiribbon.org        | http://caliburn.nl/topposting.html


More information about the Tutor mailing list