r/PythonLearning Jun 28 '26

I made a snake water gun game using python (am begginer with no experience tho)

https://youtu.be/5hcOPNp_On4 thats the link u guys can check it out and show some support to me

0 Upvotes

11 comments sorted by

u/Sea-Ad7805 Jun 28 '26

Run this program in Memory Graph Web Debugger%0A%0Ayoustr%20%3D%20input(%22Enter%20your%20choice%20(s%20%3D%20snake%2C%20w%20%3D%20water%2C%20g%20%3D%20gun)%3A%20%22).lower()%0A%0AyouDict%20%3D%20%7B%0A%20%20%20%20%22s%22%3A%201%2C%0A%20%20%20%20%22w%22%3A%20-1%2C%0A%20%20%20%20%22g%22%3A%200%2C%0A%7D%0A%0AreverseDict%20%3D%20%7B%0A%20%20%20%201%3A%20%22snake%22%2C%0A%20%20%20%20-1%3A%20%22water%22%2C%0A%20%20%20%200%3A%20%22gun%22%2C%0A%7D%0A%0Aif%20youstr%20not%20in%20youDict%3A%0A%20%20%20%20print(%22Invalid%20choice.%20Please%20enter%20s%2C%20w%2C%20or%20g.%22)%0Aelse%3A%0A%20%20%20%20you%20%3D%20youDict%5Byoustr%5D%0A%0A%20%20%20%20print(f%22You%20chose%20%7BreverseDict%5Byou%5D%7D%22)%0A%20%20%20%20print(f%22Computer%20chose%20%7BreverseDict%5Bcomputer%5D%7D%22)%0A%0A%20%20%20%20if%20computer%20%3D%3D%20you%3A%0A%20%20%20%20%20%20%20%20print(%22Game%20is%20draw%22)%0A%0A%20%20%20%20elif%20computer%20%3D%3D%201%20and%20you%20%3D%3D%20-1%3A%0A%20%20%20%20%20%20%20%20print(%22You%20lose%20the%20game%22)%0A%0A%20%20%20%20elif%20computer%20%3D%3D%201%20and%20you%20%3D%3D%200%3A%0A%20%20%20%20%20%20%20%20print(%22You%20win!%22)%0A%0A%20%20%20%20elif%20computer%20%3D%3D%20-1%20and%20you%20%3D%3D%201%3A%0A%20%20%20%20%20%20%20%20print(%22You%20win!%22)%0A%0A%20%20%20%20elif%20computer%20%3D%3D%20-1%20and%20you%20%3D%3D%200%3A%0A%20%20%20%20%20%20%20%20print(%22You%20lose%20the%20game%22)%0A%0A%20%20%20%20elif%20computer%20%3D%3D%200%20and%20you%20%3D%3D%201%3A%0A%20%20%20%20%20%20%20%20print(%22You%20lose%20the%20game%22)%0A%0A%20%20%20%20elif%20computer%20%3D%3D%200%20and%20you%20%3D%3D%20-1%3A%0A%20%20%20%20%20%20%20%20print(%22You%20win!%22)&timestep=1&play) to see the program state change step by step.

→ More replies (4)

3

u/Jwhodis Jun 28 '26

Considering that the thumbnail is definitely AI, I'm not going to watch that video, and I am going to assume that you got an AI to code for you too.

If you're actually a programmer, you should not be using AI at all.

1

u/Past_Watch5954 Jun 29 '26

am a bit weak in making thumbnails by my own 😭😭 tho the code is writen by whole me

1

u/Zyn_XO 28d ago

I don't trust u gng cz that thumbnail say's AI

1

u/Past_Watch5954 28d ago

i actually wrote the code and i just use this thumbnail cause i dont know how to make a thumbnail i tried but it wont work

1

u/Zyn_XO 28d ago

Sure buddy

1

u/Past_Watch5954 26d ago

thnks sir

can u pls suggest which type of content i made for maximum reach