GithubHelp home page GithubHelp logo

chanronnie / number-guessing-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.3 MB

Build a number guessing game with HTML, CSS and JavaScript inspired by the "Squid Game" theme.

Home Page: https://chanronnie.github.io/number-guessing-game/

License: MIT License

CSS 46.86% HTML 22.68% JavaScript 30.45%
css guess-my-number guess-the-number guessing-game guessing-number-game html javascript javascript-game

number-guessing-game's Introduction

Number Guessing Game

View - My Repositories View - More Screenshots View - Demo

Game-Preview

About this project

The goal of this project is to create a simple (yet deadly ๐Ÿ’€) interactive number guessing game that runs in the browser using HTML, CSS, and JavaScript. Inspired by the thrilling theme of "Squid Game", players need to guess a number between 1 and 20, with only a limited number of chances to get it right. The game features various setups for winning and losing, hint functionality, and responsive design.


View - Demo

Rules

  • The player is asked to guess a number between 1 and 20.
  • The player has 10 chances to guess the number correctly.
  • Each incorrect guess results in a loss of 1 chance.
  • Using a hint will cost 2 additional chances.
  • If the player guesses correctly, the game switches to a "winner" setup.
  • If the player runs out of chances, the game switches to a "game over" setup.

Features

  • CSS Flexbox is used to arrange HTML elements.
  • Different game setups are implemented using CSS classes and JavaScript for winning or losing scenarios.
  • Media queries are included for responsive design.
  • DOM manipulation with JavaScript adds functionality to buttons and manages game logic.
  • A modal window is provided to display hints if the player chooses to use them.

Technologies

HTML5 CSS3 JavaScript Visual Studio Code

Screenshots

Below are previews of the different game setups.
For a higher-resolution view, you can access the full PDF here.

default-setup hint-setup winner-setup game-over-setup

number-guessing-game's People

Contributors

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