Categories
Games Randomizers

Rock paper scissors

Goodplace.eu proudly presents a new member of randomizer family. Well known game “Rock paper scissors”

Rock Paper Scissors gameRock Paper Scissors game

Page presents php rand function in role of computer “player”, which randomly selects from three hand positions.

Have fun ! 😉

Categories
Randomizers

Roll the Dice

Simple presentation of php random function – http://roll-the-dice.goodplace.eu
Page is simulation of dice rolling. 1 – 100 dices with values from 4 to 100.

Categories
Randomizers

Flip the Coin

Simple presentation of php random function – http://flip-coin.goodplace.eu/

Flip coin

Page is refreshed after click on the Button. Picture of Coin is loaded according to results of random function.

How its made
Code:

...
<input type="button" value="Flip !" onClick="window.location.reload()">
...
<?php
if (rand(0,1) == 0) {
echo "<img src=\"1eurohead.jpg\" alt=\"Head\" title=\"Head\" border=\"0\" height=\"225\" width=\"225\">";
}
else {
echo "<img src=\"1eurotail.jpg\" alt=\"Tail\" title=\"Tail\" border=\"0\" height=\"225\" width=\"225\">";
}
?>
...

8.2.2017
Small update on site Flip the Coin.
Simple responsive template added.

Picture of boring usual 1 Euro coin replaced with very nice gold slovak 100 Euro collector coin picturing slavic earl Rastislav.

Coin head
Coin tail

Enjoy ! 🙂

Categories
Randomizers

Yes or No Generator

Simple presentation of php random function – yes-or-no.goodplace.eu

Page is refreshed after click on the Button. Picture YES  or NO is loaded according to results of random function.

How its made
Code:
...
<input type="button" value="Yes or No ?" onClick="window.location.reload()">
...
<?php
if (rand(0,1) == 0) {
echo "<img src=\"no.jpg\" alt=\"no\" title=\"no\" border=\"0\" height=\"40\" width=\"80\">";
}
else {
echo "<img src=\"yes.jpg\" alt=\"yes\" title=\"yes\" border=\"0\" height=\"40\" width=\"80\">";
}
?>

Czech version ano-nebo-ne.goodplace.eu 
German version ja-oder-nein.goodplace.eu 
Spanish version si-o-no.goodplace.eu 
French version oui-ou-non.goodplace.eu 
Portugal version sim-ou-nao.goodplace.eu 
Russian version da-ili-net.goodplace.eu 
Slovak version ano-alebo-nie.goodplace.eu