Creating a text adventure

2006-03-02 Thread DannyB
I am in the process of learning Python. I have the basics down and I now want to test my abilitiy to use them in a (very) small project. I have the idea for a (very) small text based game mapped out in my head. It will include two rooms, random creatures (amounts and type) in each room and rando

Re: Concantenation and string slicing

2006-02-23 Thread DannyB
Wow - thats simple =). Thanks a ton!! -- http://mail.python.org/mailman/listinfo/python-list

Concantenation and string slicing

2006-02-23 Thread DannyB
I've written a program that takes a phrase and spits it back out backwards. My problem is it throws each character on a new line. I'd like the phrase to be on the same line. Is this possible? #Backward Message message = raw_input("Enter a message: ") letter = len(message) while (letter > 0):

Re: Basic coin flipper program - logical error help

2006-02-21 Thread DannyB
Thanks everyone for your insight. I'm coming from C++ - I'm used to formatting code with {} instead of whitespaces. @Larry - this isn't my homework :P I'm actually taking a VB.NET class in school. I was teaching myself C++ but decided to scale back to Python. I've heard it was a bit easier to

Basic coin flipper program - logical error help

2006-02-21 Thread DannyB
I'm just learning Python. I've created a simple coin flipper program - here is the code: [source] #Coin flipper import random heads = 0 tails = 0 counter = 0 coin = random.randrange(2) while (counter < 100): if (coin == 0): heads += 1 counter += 1 else: tails +=

Re: 2.4.2 + Zone Alarm

2006-02-20 Thread DannyB
>Well, good look in court, then...!-) LOL! wow thats funny =). Type-o's can be pretty amusing sometimes. I will definatly try to reproduce the error w/o running ZA. I'll post the bug if it does happen again. Thanks for the help!! Dan -- http://mail.python.org/mailman/listinfo/python-list

2.4.2 + Zone Alarm

2006-02-20 Thread DannyB
I believe this issue is known - I haven't found a way around it. ZoneAlarm seems to be stopping IDLE from running. I get two errors: "Socket Error: Connection refused" and "IDLE's subprocess didn'tt make connection. Either IDLE can't start a subprocess or personal firewall software is blocking