Technology (Read Only) > Programming

python help

(1/1)

Goat:

in computer programming II we started using python
i fucking lol'd since i heard it was some sort of programing god language like assembly
first project is to make a game
im making a game were you buy/sell/breed hoerses
ive got 3 basic classes so far and im just wondering if anyone on you forums have a suggestion on were for me to go
this is a basic horse (LOL)


--- Code: ---

class BaseAlien(object)
def __init__(self, genus, species)
self.genus = genus \\ type of alien
self.species = species \\ the species of the hoers
self.age = 0 \\ age of teh hoers
self.pregnant = False \\ whether the hoers is pregnant or not

--- End code ---

now ill show you the basic genus

--- Code: ---

class Pacer(BaseHorse):
def __init__(self, species):
        class Sprinter(BaseHorse):
def __init__(self, species):
super(Sprinter, self).__init__(,"Sprinter"species)

--- End code ---

thats about it for now

Сєşάя:
I call Python: "The language that makes all for you"

Python is the easiest language in the world.

I made a game with Python:

Goat:
Shame I got help so late, I was able to figure this out about the third day after I posted this
Lock&bin if you want

Сєşάя:

--- Quote from: Goat on October 06, 2011, 07:05:37 PM ---Shame I got help so late, I was able to figure this out about the third day after I posted this
Lock&bin if you want

--- End quote ---

I didn't see the day when you posted. But if you're greating a game in python, I suggest you download pygame library.

Goat:
Already installed on my schools computers after a kid said he needed it etc

Navigation

[0] Message Index

Go to full version