Giter Site home page Giter Site logo

carevicm / javascript_dom-dicee_game Goto Github PK

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

Javascript DOM - Dicee Game

Home Page: https://carevicm.github.io/JavaScript_DOM-Dicee_Game/

HTML 32.08% JavaScript 43.72% CSS 24.20%
css3 dom dom-manipulation html5 javascript javascript-game

javascript_dom-dicee_game's Introduction

Dice Game ๐ŸŽฒ

Description

The Dice Game is a simple web application where two dice are rolled every time the page is refreshed. The outcome decides whether Player 1 wins, Player 2 wins, or it's a draw. It's a fun and quick way to settle a tie or make a decision between two options.

Features

Random Outcome: Every time the page is loaded, a new outcome is decided based on the roll of two dice.

Visual Feedback: The dice images change according to the outcome, and the result is displayed prominently on the page.

Responsive Design: With modern styling, the game is visually appealing on both desktop and mobile devices.

Simple Mechanics: No need for user input. Just refresh the page and get a new outcome!

Technologies Used

HTML: Structures the main content of the web page.

CSS: Used for styling the web page, providing a responsive design, and ensuring a great look and feel on all devices.

JavaScript: Powers the main functionality of the web application. It handles the dice roll logic and updates the DOM based on the outcome.

External Libraries & Resources

Google Fonts: The website uses the "Roboto" font family from Google Fonts to provide a unique and modern look.

How To Use

Open the Web Application: Navigate to the Dice Game website.

Refresh for Outcome: Simply refresh the page to roll the dice and see the outcome. The result (Player 1 Wins, Player 2 Wins, or Draw) will be displayed at the top.

Check the Dice: The dice images will change according to the roll, giving a visual representation of the outcome.

javascript_dom-dicee_game's People

Contributors

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