Giter Site home page Giter Site logo

csproject3's Introduction

CsProject3

Build Status

Online Pong. Users can play matches of pong on a local network. Does not work on windows.

Getting Started

Make sure to look at installing before starting the program.

To run the local client, run the command python3 /pong.py in the ./pong directory. This will run the game. The game will load into a searching screen. In this screen UDP packets are broadcasted over the user's local internet looking for the match making server. To launch the server, run from the parent directory, python3 ./server/serverMain.py. You will need another player on that network to play with you.

Functionality

Pong

  • Classic pong game-play

  • Username functionality

  • Able to remember win rate

  • Instant local peer to peer match making

  • Very little lag

  • Rare desyncing

Server

  • Local data storage using CSV files to maintain a local database

  • Json packet communication

  • UDP socket management

  • Multicast support for matching players

  • Basic lobby management

Installing

Before running the code, you need to install the requirements. To do this run the command.

python3 -m pip install -r requirements.txt

After that we need to make sure everything is setup correctly. Run, sudo python3 setup.py install. This will install all local packages so that there are no module errors.

Then you should be all set to go.

Running the tests

All tests will be ran in travis. Although, running the tests manually is also an option. We have 31 total tests. From the parent directory run the following commands to see the results of each one.

Player Tests

python3 ./tests/player_tests.py

Ball Tests

python3 ./tests/ball_tests.py

Server Tests

python3 ./tests/server_tests.py

Node Tests

python3 ./tests/node_tests.py

Tournament Tests

python3 ./tests/tournament_tests.py

Built With/Requirements

  • Python3 - The compiler for device manager

    • Pygame - This package is needed for device manager to grab ip

Authors

  • Jack West - Pong base and Net code development - jweezy24
  • Drew Mack - User features for Pong - drew-mack
  • Jack Broncato - Matchmaking and customization settings - jman11111

See also the list of contributors who participated in this project.

csproject3's People

Contributors

jweezy24 avatar

Stargazers

 avatar

Watchers

 avatar  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.