Skip to content

namannj15/Rock-Paper-Scissors-Using-Socket-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors-Using-Socket-Server

This is a project for the class: 18CSC302J - Computer Networks by Dr. S.Babu

Contributors

Overview

This is a simple game of rock-paper-scissors developed in Python. It allows two players to play with one another on different command lines through networking. The server starts the game by first running server.py, waiting for the client to connect by then running client.py. Once they are connected, the game itself starts.

It is a multiplayer game. Two client files has to be executed simultaneously namely Player 0 and Player 1. A player has to make his/her choice from three given option : Rock , Scissors , Paper and same has to be done by another player. According to predefined conditions the result is decided.

Choice

Technical Keywords

Socket Programming:

Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP, while the other socket reaches out to the other to form a connection. The server forms the listener socket while the client reaches out to the server.

Pygame Library:

The pygame library is an open-source module for the Python programming language specifically intended to help you make games and other multimedia applications. Built on top of the highly portable SDL (Simple DirectMedia Layer) development library, pygame can run across many platforms and operating systems.

Pickle Module :

Python pickle module is used for serializing and de-serializing a Python object structure. Pickling is a way to convert a python object (list, dict, etc.) into a character stream. The idea is that this character stream contains all the information necessary to reconstruct the object in another python script

Demo

Development Environment

  • Visual Studio Code
  • Git/Github
  • Python (3.9.4)64-bit
  • Python : Socket , Pygame and Pickle modules

About

This is a project for the class: 18CSC302J - Computer Networks by Dr. S.Babu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages