Giter Club home page Giter Club logo

jspenaltygame's Introduction

Simple Penalty Shootout Game

This is a simple penalty shootout game created using HTML, CSS, and JavaScript. In this game, the user can choose a player (Ronaldo, Messi, Neymar, or Mbappé) and then attempt to score a penalty. The game logic is as follows: every time the user clicks on the ball to shoot, a random number between 0 and 2 is generated for both the user and the CPU. If the numbers for the user and CPU are the same, it's a save; if they are different, it's a goal. (0 = left of the goal, 1 = center of the goal, 2 = right of the goal)

How to Play

Choose a player by clicking on their image (Ronaldo, Messi, Neymar, or Mbappé). Click on the ball to shoot. The game will randomize a number between 0-2 for both the user and CPU. If the numbers are the same, it's a save; if they are different, it's a goal. Keep playing to see how many goals you can score!

You Can Acess It Here

Technologies Used

  • HTML
  • CSS
  • JavaScript

Disclaimer

The images used in this project are not owned by the developer and are used for educational purposes only.

jspenaltygame's People

Contributors

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