Giter Site home page Giter Site logo

socketprogramming's Introduction

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!

socketprogramming's People

Contributors

shane-oo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.