Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Python Programming tips  (Read 516 times)

Deadmeat1471

  • Bay Watcher
    • View Profile
Python Programming tips
« on: November 07, 2010, 09:05:01 pm »

So i'm a complete noob but i've been learning basic programming randomly for the last year. Having a spout of a few days or so of learning and then giving up.


Heres a small program I made, a very basic game.

It WORKS, but its shit, and you can break it very easily. (haven't inserted non expected answer type fixerers)

At the direct moment it has a few bugs as i rearranged the indentations and a few other things. But thats generally it for now.

I plan to expand on it and improve, but i'm wondering if anyone has any PRORAMMING tips. Such as functions I could use or shortcuts to what i've done etc etc any constructive help is useful!

Logged

Deadmeat1471

  • Bay Watcher
    • View Profile
Re: Python Programming tips
« Reply #1 on: November 07, 2010, 09:05:57 pm »

http://openetherpad.org/XnbsjFAIZR

BEWARE its VERY messy! Theres quite a few variables I removed from the program but left in.
Logged

Deadmeat1471

  • Bay Watcher
    • View Profile
Re: Python Programming tips
« Reply #2 on: November 07, 2010, 09:06:52 pm »

P.s I do not condone slavery. It was the first thing that came to mind.
Logged