Jump to content

Python Game Help

scobie56

so i am making a memory game in python cos im board im on the stage there you have to guess that the changed word is. i put the changed word in a venerable called "Sub". before the user enters there guess at the missing word i i make python print out the

 YkFW9mR.png

My speakers dont even fit on or under my desk...PA's FTW

Link to comment
Share on other sites

Link to post
Share on other sites

What's the problem?

 

And it's variable not venerable :lol:

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to comment
Share on other sites

Link to post
Share on other sites

What's the problem?

 

And it's variable not venerable :lol:

Yl5WbvD.png

My speakers dont even fit on or under my desk...PA's FTW

Link to comment
Share on other sites

Link to post
Share on other sites

snip

We don't understand what your problem is. What are you trying to accomplish, and what is actually happening when you execute the script. Also, please use code tags.

 

[ code ] stuff in python [ /code ]

 

Example:

print 'Hello World'

CPU: AMD FX-6300 4GHz @ 1.3 volts | CPU Cooler: Cooler Master Hyper 212 EVO | RAM: 8GB DDR3

Motherboard: Gigabyte 970A-DS3P | GPU: EVGA GTX 960 SSC | SSD: 250GB Samsung 850 EVO

HDD: 1TB WD Caviar Green | Case: Fractal Design Core 2500 | OS: Windows 10 Home

Link to comment
Share on other sites

Link to post
Share on other sites

@scobie56 in python variables and functions are supposed to be named such as this: print_grid() load_words(), notice how the words are separated by underscore and not capitalised.

Also functions ideally should have two blank lines before their definition.

 

For more info: https://www.python.org/dev/peps/pep-0008/

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×