Project Using HTML, CSS and JavaScript

Pubblicato il: 13 novembre 2021
sul canale di: Dammah
44
2

Made another Project Using JavaScript. During this project learned about Document Object Model.
Used the knowledge of events to add logic (Click Functions) and classList to add/remove classes that are causing changes in colors while switching from one player to another.
Functionalities:
When the Roll Dice button is clicked, a random number between 1 to 6 (Inclusive) will be generated. If the number is 1, it means the player will be switched. Every time the roll dice is clicked and the number is not one then the score will be added to the current score.
When the player will click the Hold button, its current score will be added to the main score, and checking if the score is greater than or equal to 50 will happen. If this is true, an active player (currently playing player) will win the game. Otherwise, the switching of players will happen.
Github Link:
https://github.com/mhammadsaani/JavaS...


In questa pagina del sito puoi guardare il video online Project Using HTML, CSS and JavaScript della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Dammah 13 novembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 44 volte e gli è piaciuto 2 spettatori. Buona visione!