Python Online Game Tutorial #9 - Online Rock Paper Scissors p.4

preview_player
Показать описание
This python online game tutorial shows how to create an online rock paper scissors game using python sockets, networking and the module pygame.

◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡◾
Tags:
- Tech With Tim
- Python online game tutorial
- Python sockets turtorial
- sockets tutorial python
- Online game python
- Python Tutorials
Рекомендации по теме
Комментарии
Автор

Awesome Tutorial. Really appreciated.

I would love to see how to actually make this an online game rather then a lokal network game.

marcusmeyer
Автор

how to actually make this an online game rather then a local network game.?

morningstarairsoft
Автор

You’re a legend. You have helped so much with these videos. Thanks and keep making more good stuff. 👍

gunansingh
Автор

I promise this guy is the teacher you wanted..

krypton
Автор

player = int(n.getP())
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

srkz
Автор

Hi Tim!


First of all: THANKS FOR SHARING YOUR KNOWLEDGE! It's very nice for someone who doesn't know how to build something like this to have a guide able to explain them how to move.


I got problems in running this. The game started but when I click on 'Click to Play', the computer just stops for a while and then I receive an error on PyCharm (TypeError: int() argument must be a string or a number, not 'NoneType'). I'm honestly unable to fix it at the moment, I guess something goes wrong on connecting the client as a player.


Thanks again and keep going!

vannino
Автор

From 🇮🇳, love your videos.. Keep it up bro ♥

crazyinfox
Автор

Ty Tim u are helpful but I have a question.how can I upload the game to website.

yuzheng
Автор

Damn thought you said you were going to make a video about how to deploy it so we could play from different networks :( I watched all the series and was wsaiting for that maybe you could make that video in the future

Benmenesesjr
Автор

Thanks a lot for the tutorial Tim! I've followed your code exactly and I keep getting the following error when I click a move on either client.

File "/Users/hekmundo/python_work/game_servers/new_game/client.py", line 180, in <module>
menu_screen()
File "/Users/hekmundo/python_work/game_servers/new_game/client.py", line 176, in menu_screen
main()
File "/Users/hekmundo/python_work/game_servers/new_game/client.py", line 151, in main
n.send(btn.text)
File "/Users/hekmundo/python_work/game_servers/new_game/network.py", line 32, in send
return
EOFError: Ran out of input

Any advice? Thanks!

alexhek
Автор

hello sir Tim can you teach me about the code on this video the code s.listen(2) make me have an error that says s.listen(2) [WinError 10022] An invalid argument was supplied

jericosumabat
Автор

Sometimes when I click on a button, it shows the option that I clicked the game before but it still acts like the option I chose. For example if I chose "Rock" the game before and I chose "Paper" this game, it will show that I chose "Rock" but the game will still play on like I chose "Paper". Anyone else having this error?

brattergaming
Автор

That is an amassing tutorial. However, I'm trying to create a memory match game, and I'm confused about what tool should I use. I mean, How is Pygame compared to Javacript+Css, And which of thees should i be using with Flask?

yasminamran
Автор

whenever I run my code I get an error on this line
btns = [Button("Rock", 50, 500, (0, 0, 0)), Button("Scissors", 250, 500, (255, 0, 0)), Button("Paper", 450, 500, (0, 255, 0))]
and the error is:
btns = [Button("Rock", 50, 500, (0, 0, 0)), Button("Scissors", 250, 500, (255, 0, 0)), Button("Paper", 450, 500, (0, 255, 0))]
NameError: name 'Button' is not defined

Does anyone know why?

yuvalmas
Автор

ok i finished doing this and it works!
so how do i play it with my friend????

Faisal-jovk
Автор

Hi Tim your doing great I like all your Toturial videos and daily learning from you a great lots thanks to u👏
But now I need help in multiple player game I connected server to client then I get an error of
AttributeError: 'Game' object has no attribute 'p1Went' this is the error anyone help me

vishalnk
Автор

Hello Tim.


How to put this game in a online server?


I think this matter is very cool too!
Could you tell a good book to keep this going?


Tnhx man!!!

unity_with_timoteo
Автор

can it handle other new connections while 2 players playing with each other ?

litbeatzzz
Автор

How to play this game in two laptop ??
Please answer

vpoovarasan
Автор

Please we want new videos about this and thanks a lot.

keremaker