GithubHelp home page GithubHelp logo

paradigms-final's Introduction

Final project for David Mattia and John Riordan

To play Pong, begin by running main.py on student03.cse.nd.edu. Then, run

	python player1.py 

on any local machine (making sure pygame and twisted are installed). If you want to play against a CPU, select that option in the menu and select the CPU difficulty. If you want to play against someone else, have them run

	python player2.py 

on their machine and select that option in the menu.

Move your pong paddle up and down using the up and down arrows on your keyboard. The goal of the game is to make the ball hit the other person's side and not let it hit your own. The game is played to 10 points, at which point the game will display a winner and exit.

Scale and Complexity: Our networking was the most advanced of our features. Our networking allows for both single player and multiplayer modes of gameplay. Most importantly, our networking code is robust enough to run our game at 30fps - faster than the TCP stream sends data to our clients. Our clients are intelligent enough to parse through this data and find what is needed to display the most recent version of the game without any hiccups. It has error handling to account for partial json objects sent over the server and handles them gracefully while continuting the game.

Within our game, we added complexity by having 10 different difficulty levels of AI in addition to having the two player mode. The AI moves smoothly and is beatable on all levels.

paradigms-final's People

Contributors

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