This is basically a 2 player dice game.
In this game, everytime user hit refresh button both dices throws new numbers.Depending on these numbers on the die winners get decided.
Logic behind this game is implemented using Javscript.
Let's see how this is done: Every time a new number on the dice can be achieved using random number generation. Random numbers can be generated using Math.random( ) function present in javascript.Math.random() returns a random number between 0 (inclusive), and 1 (exclusive).