Giter Site home page Giter Site logo

guessing-game's Introduction

Guessing-Game

This is a Simple Guessing game created using python socket module as my CN Project. The game is that 2 players will join the server, one will enter 2 statements one correct and one incorrect and the other player has to guess it. And this can be continued till a target score mutually decided by both the players is reached to decide the winner. Interesting right!

Steps to run the game

  1. Once you have the files in your local machine open it using VS code or anyother editor of your choice.
  2. Open the terminal and type 'py server.py' and press enter. The game server has started.
  3. Now split the terminal and type 'py client.py' and press enter. This makes player 1 to join the server.
  4. Player 1 will be promted to enter the correct and incorrect statements.
  5. Once its done split the terminal again and in the new terminal type 'py client.py' again. Now this makes player 2 to join the server.
  6. Player 2 will be have 2 statements displayed out of which he has to guess the correct one. He has to enter 1 or 2 based on his predictions and the server will respond whether it's the correct answer or not with the respective message.
  7. Just make sure that server is running throught the game.(From step 3 to step 6)
  8. Enjoy guessing!

Snapshots

Server

Screenshot (33)

Server and Player 1

Screenshot (34)

Player 2

Screenshot (35)

guessing-game's People

Contributors

pranith-rao 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.