Game of duck, duck, duck, goose

0

I have the following code, to make a game of the duck-goose using for in PHP, but I just can not find how to do it.

The game consists in that there is a n number of players, in this case there are 4, from that, print to the players and define what will be each one of them. To give an example Maria 'is' goose, John is a duck, and so on from a random choice.

for ($x=0; $x <4 ; $x++) { 

    for ($y=0; $y < $arr_name ; $y++) { //for para la cantidad de jugadores

        if () {//este va a decir quien es pato y quien es ganso

            break; //para dejar de elegir al ganso
        }
        if () { //este if va a decir si atrapo o no 

        }
    }
}
    
asked by Pedro M. 16.02.2018 в 00:11
source

0 answers