GithubHelp home page GithubHelp logo

skrishnan2001 / hand-cricket-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 29 KB

A single-player hand-cricket game played against the computer

C 100.00%
linkedlists queues-ds random-number-generators handcricket

hand-cricket-game's Introduction

Hand-Cricket Game built using C

Rules of the game

1.The User has to spin a coin during the toss,based on the outcome of the toss, the user will bat or field first!

3.The User can choose the total number of overs and wickets for the respective match after the toss.

4.The User can enter scores only between 0 to 6.

5.If the User and computer land up on the same number while batting, the batsman is declared out.

6.The team is considered ALL OUT after losing all the wickets during batting.

7.If the batsman inputs a 0 and the computer generates any number other than 0,those runs will be added to the batsman's score.

8.In case of a 0 by both the batsman and the computer, then the batsman is declared out.

9.A batsman is considered to be out when he inputs the same number as that of the number generated by the opponent.

10.In case of a tie in the scores, the user will have to play a Super Over against the computer.

Enjoy playing!!

hand-cricket-game's People

Contributors

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