marjanovicbrane / GAME-Dice-Roller

From this game you can learn a lot of staff, you can learn all fundamentals of HTML , CSS and Java Script.You can learn how to use all kind of methods and functions.How to use DOM manipulation, Event Listeners and buttons, so we can have interactions with our game.You will also learn how to manipulate with CSS styles using Java Script and much more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GAME-Dice Roller

dice roller 1

About the game:

This is a multiplayer game, first plays player 1.This game generates random number between 1-6 while you rolling the dice.Who gets 100 points first, he is the winner.

When you press the button “ROLL DICE”, you roll the dice and your current score field show you how many points do you have.While you rolling the dice all points are summed together. When you press the button “HOLD”, you hold that current score and that current score becomes total score and then plays player 2.

Tricky part in this game is, when you get number 1 while you rolling the dice, all current score that you collect is set to 0, you also lose the move in the game and then plays player 2.

If you want to play the game again, you need to press the button “NEW GAME”.

dice roller 2

Flowchart for the game:

On this flowchart you can see all the tasks which we implemented in this game.I also commented all the code, so you can better understend how this game works.

dice-roller-flowchart

What we can learn:

From this game you can learn a lot of staff, you can learn all fundamentals of HTML, CSS and Java Script.

You can learn how to use all kind of methods and functions.How to use DOM manipulation, event listeners and buttons, so we can have interactions with our game.You will also learn how to manipulate with CSS styles using Java Script and much more.

About

From this game you can learn a lot of staff, you can learn all fundamentals of HTML , CSS and Java Script.You can learn how to use all kind of methods and functions.How to use DOM manipulation, Event Listeners and buttons, so we can have interactions with our game.You will also learn how to manipulate with CSS styles using Java Script and much more.


Languages

Language:JavaScript 60.5%Language:CSS 26.7%Language:HTML 12.7%