Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 14th, 2005, 2:08 AM   #31
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Yep..
__________________

tempest is offline   Reply With Quote
Old Jun 14th, 2005, 6:35 AM   #32
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Sorry, guys... exams and all... and I've been working on my game.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 14th, 2005, 5:39 PM   #33
SaturN
Programmer
 
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4 SaturN is on a distinguished road
I submited, ok it was a piss take, but i still did, does that make me the winner in all fairness then?? i think so
Go saturn, it's ya birth day, haha
__________________
while me is alive:
	make(life,simple)
SaturN is offline   Reply With Quote
Old Jun 14th, 2005, 9:59 PM   #34
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
No, what you posted won't actually work. Therefore it's not considered an entry.
__________________

tempest is offline   Reply With Quote
Old Jun 15th, 2005, 4:13 AM   #35
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
it would work, true there are a few minor syntax errors in there but still.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Jun 15th, 2005, 10:07 AM   #36
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Berto, ok, cool... explain to me how the functions poke() and drive() will work I've always wanted a program that can poke me and drive me to work.
__________________

tempest is offline   Reply With Quote
Old Jun 15th, 2005, 10:30 AM   #37
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
They probably do exist some obscure SDK...
The popemobile (peace be upon him) had self-guiding sat nav and could also survive a small nuclear strike, so why not?
Rory is offline   Reply With Quote
Old Jun 15th, 2005, 4:13 PM   #38
SaturN
Programmer
 
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4 SaturN is on a distinguished road
Right peeps were kinda annoying me about that code, made as a joke..
SO, i have made it actually run now, so if someone wants to pull it apart feel free!! obviously drive, and poke have been made as functions, and are just little pics, and drive is like a gprs idea!

from time import *
import winsound

def Poke(name,strength):
    if name == "saturn" and strength == "hard":
        print """

    Poke     _o_
--->--->--->  |
    Hard     / \

"""
        winsound.Beeb(130,1000)
        print "Wake Up"

def Drive(name,location):
    if name == "saturn":
        if location == "work":
            print """
Leaving Aynam Road.
Driving Over Nether Bridge.
Taking Kirkland Road onto NewRoad Car Park.
"""
        if location == "home":
            print """
Leaving NewRoad Car Park.
Taking Highgate Bridge.
Driving Down Aynam Road.
"""
            

def Wake():
    num = 1
    while num == 1:
        if strftime("%H:%M", localtime()) == "06:00":
            Poke("saturn","hard")
        if strftime("%H:%M", localtime()) == "07:45":
            Drive("saturn","work")
        while strftime("%H:%M", localtime()) > "08:30" and strftime("%H:%M", localtime()) < "05:30":
            sleep(10)
        if strftime("%H:%M", localtime()) == "05:30":
            Drive("saturn","home")
        else:
            sleep(60)

Thanks
__________________
while me is alive:
	make(life,simple)
SaturN is offline   Reply With Quote
Old Jun 15th, 2005, 4:42 PM   #39
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Methinks he wins.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 15th, 2005, 5:38 PM   #40
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
The submittion deadline was monday night, sorry folks. No winner.
__________________

tempest is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:45 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC