Skip to content

ndanevski1/RPS-Socket-Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collaboration:
Team Members: Nikola Danevski (ndanevsk) and Muhammad Usama Ijaz (mijaz)
Class: CSC 257
Project 1

Instructions to run the code:
Compile and execute server: python3 rps.py [Player Name] server [Port Number]
Compile and execute client: python3 rps.py [Player Name] client [Address shown when server is ran]:[Port Number]

Example Input/Output for server:
[mijaz@cycle1 RPS-Socket-Programming]$ python3 rps.py Usama server 5005
Server running!
Waiting for a client...
Server address & port =  128.151.69.85 : 5005
Hi! You're playing against Nikola
Please choose rock/paper/scissors: rock
The outcome of the game is ...
3
2
1
Sorry! You lost the game! :(

Example Input/Output for client: python3 rps.py Nikola client 128.151.69.85:5005
Hi Nikola ! Trying to connect to 128.151.69.85 : 5005
Hi! You are connected to the server. You are playing against Usama!
Please choose rock/paper/scissors: paper
The outcome of the game is ...
3
2
1
Congratulations! You won the game!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages