EB547's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Members
Active Posts:
14 (0.01 per day)
Joined:
20-February 09
Profile Views:
909
Last Active:
User is offline Jan 15 2013 04:15 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
Nintendo
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

No latest visitors to show

Icon   EB547 has not set their status

Posts I've Made

  1. In Topic: Command Line Parameter Through WinMain Problem

    Posted 15 Jan 2013

    Thank You!
    Turns out a sister function, _wcsicmp() was what i was looking for. Works like a charm.
  2. In Topic: Restarting a program in python

    Posted 27 Jul 2011

    Thanks to all, you guys got it working :bigsmile:
  3. In Topic: Restarting a program in python

    Posted 27 Jul 2011

    import getpass
    import os
    import sys
    
    doing = True
    while doing:
    	bounce = False
    	number = int(raw_input("Player 1, enter your number here: "))
    	os.system('cls')
    	running = True #Main Routine
    	while running:
    		guess = int(raw_input("Player 2, Guess: "))
    		
    		if guess == number:
    			print "You Guessed It! Congrats!"
    			running = False
    			bounce = True
    			doing = False
    		
    		elif guess < number:
    			print "No, its higher than that."
    		
    		elif guess > number:
    			print "No, its lower than that."
    		
    		else:
    			print "Error With Game"
    			running = False
    			Bounce = False
    			doing = False
    	while bounce:
    		re = raw_input("Want to play again? (Yes/No) ")
    		if re == "Yes":
    			bounce = False
    			doing = True
    	else:
    		print "Game Over"
    		break
    	
    
  4. In Topic: Restarting a program in python

    Posted 27 Jul 2011

    View PostMotoma, on 27 July 2011 - 12:05 PM, said:

    After line 35, you will need to set doing = true. Then you will need to indent the entire while bounce: to be inside the while doing: loop.


    Tried it, couldnt get it to work...

    View PostBrewer, on 27 July 2011 - 12:04 PM, said:

    Settings 'doing = True' at the bottom has no effect because the doing loop has already run. What I recommend you do is break this up into functions. Have a main() function that contains what is currently the 'while bounce' loop, and have another function named game() or doing() or whatever you want. Edit the program so that if the player answers yes when asked if they'd like to play again, you call game() (or whatever you named the function).


    Also tried, again no luck.
    I am severely inexperienced, and this is a weird problem I've never experienced.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
3
Programming Languages:
C++,MS VB,Python

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://
Yahoo:
Yahoo  brooksethan34@yahoo.com
Twitter:
EB547

Friends

EB547 hasn't added any friends yet.

Comments

EB547 has no profile comments yet. Why not say hello?