Giter VIP home page Giter VIP logo

chemicalbingo's Introduction

Chemical Bingo

The game

This Chemical Bingo project is a web-based game designed to enhance your knowledge of chemical elements in a fun and interactive way. The game utilizes a Bingo-style grid, where each cell represents a chemical element. The goal is to achieve Bingo by correctly identifying and clicking on the cells that correspond to randomly selected chemical elements.

Here's how the project works:

  1. Initialization:

    • The game starts by displaying a Bingo grid with four rows and five columns.
    • Each cell in the grid corresponds to a chemical element symbol.
  2. Random Element Selection:

    • Elements are randomly selected from different orbitals (s, p, d, f) to add an element of unpredictability.
    • The selected element is displayed at the top of the page for reference.
  3. Gameplay:

    • Players click on the cells corresponding to the selected element.
    • If the clicked cell matches the selected element, it is marked as "clicked" (highlighted in green).
    • If the clicked cell does not match, it is marked as "wrong" (highlighted in red).
  4. Bingo Check:

    • The game checks for a Bingo after each click.
    • Bingo is achieved when an entire row is filled with correctly clicked cells.
    • The winning row is highlighted, and the player is alerted about the Bingo.
  5. Next Element:

    • After each click, a new element is randomly selected for the player to identify.
    • The cycle of random element selection and gameplay continues.
  6. Reset and New Game:

    • Players can reset the game using the "Reset Game" button, which initializes a new grid and element selection.
    • The "Next Element" button triggers the selection of a new random element.
  7. Loading Elements:

    • The game fetches chemical elements from an external JSON file during initialization.
    • A loading message is displayed until the elements are loaded.

Local usage

Once cloned the git, to start the game, first startup the server

http-server

Then, open the URL 'localhost:8080/chemical.html'

chemicalbingo's People

Contributors

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