Code for a puzzle | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Code for a puzzle

please, help me with a code in Python to make a puzzle game

7th Jun 2018, 7:22 PM
Akpan Emmanuel David
10 Answers
+ 3
Sure. Post up what you've already tried and I'll be more than happy to provide you with feedback or advice.
7th Jun 2018, 7:46 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 3
not easy in SL code playground. if you want input option, the puzzle must be permanent. if you have random puzzle, the user has to check the result after. see examples for both. https://code.sololearn.com/c0guw50hXiij/?ref=app https://code.sololearn.com/cHQD5erj92wy/?ref=app
9th Jun 2018, 8:30 AM
tamaslud
tamaslud - avatar
+ 2
the thing is, I don't have any idea on what to make
7th Jun 2018, 8:17 PM
Akpan Emmanuel David
+ 2
Here is an extremely simple idea you can do for practice to get more familiar with how games work with Python. Memory game! :) Just have various "cards" that you turn over in order to match them up.
7th Jun 2018, 8:24 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 2
I think I have heard of it
7th Jun 2018, 8:25 PM
Akpan Emmanuel David
+ 2
http://inventwithpython.com/pygame/ ^I just found that on Google for you. They have various tutorials, including a couple puzzle games for Python. Hope that helps.
7th Jun 2018, 8:32 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 2
seen, but do I really have to download pygame
7th Jun 2018, 8:33 PM
Akpan Emmanuel David
+ 1
Just depends what type of game you're trying to create. I'm not one of the Python gurus here, and I personally don't like the language, but maybe one of the pros can show up and advise you further on that. I know Python has many libraries available to it, so there may be others you could use for this purpose. I'm uncertain if core Python can accomplish that without the assistance of other libraries.
7th Jun 2018, 8:38 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
thanks
7th Jun 2018, 8:39 PM
Akpan Emmanuel David
0
thanks
11th Jun 2018, 11:16 AM
Akpan Emmanuel David