Giter Club home page Giter Club logo

smart-coding-football's Introduction

Smart Coding FootBall

There will be 2 teams with 5 players in each team, each player will get to hit a penalty shot, a random number will be generated when a penalty shot is hit, if the generated random number is in between the given range (10-15) then it's a goal or it's a miss. Note: Range will be a user input. Finally display the winner based on the number of goals scored.

From the above question, make the number team and players dynamic and then players have to shoot in an alternative way from each team. The number of rounds is also added. ex: 3 team 3 players and 2 rounds

P1 from team-1 -> first shot -> 8 => miss

P1 from team-2 -> first shot -> 11 => goal

P1 from team-3 -> first shot -> 12 => goal

P2 from team-1 -> second shot -> 8 => miss

P2 from team-2 -> second shot -> 11 => goal

P2 from team-3 -> second shot -> 12 => goal …… and so on.

Finally display which team has won

From the above question , if a player hit a goal he will get 100rs . Display who has the highest money and which team has the highest money.

smart-coding-football's People

Contributors

anandash-8 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.