* @copyright 2022 Bartolomé Sintes Marco * @license http://www.gnu.org/licenses/agpl.txt AGPL 3 or later * @version 2022-11-30 * @link https://www.mclibre.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ session_name("tragaperras-5"); session_start(); // Valores iniciales variables sesión if (!isset($_SESSION["monedas"]) || !isset($_SESSION["fruta1"]) || !isset($_SESSION["fruta2"]) || !isset($_SESSION["fruta3"]) || !isset($_SESSION["apuesta"]) || !isset($_SESSION["premio"]) || !isset($_SESSION["cara"])) { header("Location:tragaperras-5-2.php"); exit; } ?> Tragaperras (5). Minijuegos. Ejercicios. PHP. Bartolomé Sintes Marco. www.mclibre.org

Tragaperras (5)

\n"; print " \n"; print " \n"; // Se muestran las tres imágenes de la combinación actual print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print " \n"; print "
" . "\"Imagen\"" . "\"Imagen\"" . "\"Imagen\"\n"; // Se muestra la apuesta print "

\n"; print "

$_SESSION[apuesta]

\n"; // Se muestra el botón de Jugar print "

\n"; // Si se ha jugado se muestra cara y resultado, si no cara neutra print "

"; if (isset($_SESSION["cara"])) { print "\"Mal\""; print "$_SESSION[premio]

\n"; } else { print "\"Normal\"

\n"; } print "
\n"; // Se muestra el contador de monedas print "

\n"; print "

$_SESSION[monedas]

\n"; print "
\n"; print " \n"; ?>