shane-oo / socketprogramming Goto Github PK
View Code? Open in Web Editor NEWServer and client sockets tile game
Server and client sockets tile game
Project made by Shane Monck (student id:22501734) All tiers implemented Test Environment: The Code was written and runs on a Mac. Matt Egan, made it aware that socket.MSG_DONTWAIT and socket.MSG_PEEK does not work on win32 (windows), if the project is run on win32 please uncomment the lines of code that are underneath the comment #win32 and then comment out the data line that has (socket.MSG_DONTWAIT | socket.MSG_PEEK). Unforuntely I was not able to fully test the implementation of it running on both Mac and win32, so I have left the code that I know works the best on Mac, but incase the project is run only on win32 the code is there so that it could potentially work. Note: The server.py does not pass the tester.py tests all the time, sometimes it does and sometimes it does not. Please if its possible test manually and see if my implementations were correct for the different tasks we had to do. Lastly thank you to Jin Hong and the lab demonstrators, and a special thanks to Matt Egan for all his help on this project. ///-----------------HOW TO RUN PROGRAM----------------/// Open as many terminal programs as you wish, 1 to be the server and the rest to be the players/spectators On server terminal: $ python3 server.py On client terminals: $ python3 client_v2.py see example.png if unsure ... Play the game!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.