Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Launch Your Cybersecurity Career in 6 Months
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This episode walks through implementing the server for an online multiplayer math game in Python using sockets. It covers room handling, sending messages to opponents, disconnects, and starting and testing the server.
Syllabus
Introduction
About Your Host
Demo of the App
App Architecture
Create Initial Python Files
Paste Protocols
Create main.py
Create room.py
Import room.py
Write wait_for_room
Recap
Create Handle Logic
Recap
Create send
Create send_to_opponent
Create disconnect
Have Server Start After Init
Initialize Server and Test
Conclusion
Taught by
Linode