beste,
ik heb een script spel bedacht.
iemand zegt een script bijv, (homepage,html, simpel)
en dan doet iedereen 3 line of scripts
ik start wel : '=
geen oftoppic berichten!!
beste,
ik heb een script spel bedacht.
iemand zegt een script bijv, (homepage,html, simpel)
en dan doet iedereen 3 line of scripts
ik start wel : '=
geen oftoppic berichten!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
<head>
<title>HomePage</title>
</head>
<body>
<?php die('Loos topic...'); ?>
<?php echo "Slotje! NU! NU! NU!";
exit;
?>
</body>
</head>
Toon Meer
zien we de grap?
waarom zo vaag doen?
Omdat het toch niet gaat werken.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?PHP
require_once('include/db_criminalspoint.php');
Toon Meer
<?php
/**
* www.criminalspoint.com
* Kaarten spel
**/
class kaarten
{
protected $dirname;
protected $deck = array();
protected $deckShort = array();
protected $deckValues = array();
protected $deckSpecialValues = array();
public function __construct()
{
if( ! empty($_SESSION['oudekaarten']))
{
$_SESSION['oudekaarten'] = array();
}
$this->dirname = 'images/kaarten/';
$arrSuits = array('harten', 'ruiten', 'klaveren', 'schoppen');
$arrSuitsShort = array('h', 'r', 'k', 's');
$arrCards = array('aas', 'een', 'twee', 'drie', 'vier', 'vijf', 'zes', 'zeven', 'acht', 'negen', 'tien', 'boer', 'vrouw', 'heer');
$arrCardsShort = array('A', 2, 3, 4, 5, 6, 7, 8, 9, 10, 'J', 'Q', 'K');
$arrValues = array(11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10);
$arrSpecialValues = array(14, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
for($iSuits = 0; $iSuits <= 3; $iSuits++)
{
for($iCards = 0; $iCards <= 12; $iCards++)
{
//Aanmaken van de lange versie van de set speelkaarten
$this->deck[] = $arrSuits[$iSuits] . ' ' . $arrCards[$iCards];
//Aanmaken van de korte versie van de set speelkaarten
$this->deckShort[] = $arrSuitsShort[$iSuits] . $arrCardsShort[$iCards];
//Toekennen van de waarden van de speelkaarten
$this->deckValues[] = $arrValues[$iCards];
$this->deckSpecialValues[] = $arrSpecialValues[$iCards];
}
}
}
}
Toon Meer
Oud stuk code dat ik nog had erin gesmeten.
Heb je nog geen account? Registreer je nu en word deel van onze community!