Gratis scripts tot 20u

Gestart doorSanderc36 reacties65 weergaven

37 berichten · pagina 2 van 3

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Sanderc schreef:
Ik ga nu beginnen aan dat blackjack script en dat word hier dan geplaatst als het af is.
Succes! Ik ben benieuwd. wink
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hier is de blackjack;

Codeblok (voorbeeld.php):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86


session_start();
if(!$_SESSION[begin_nummer] OR !$_SESSION[begin_nummer_bank])
{

$_SESSION[begin_nummer] = rand(1,13);
$_SESSION[begin_nummer_bank] = rand(1,13);

}


if (isset($_POST[start]))
{


echoJij hebt nu: .$_SESSION[begin_nummer].
Wens je verder te gaan?
;
echo
Debug/Developer mode: De bank heeft:
.$_SESSION[begin_nummer_bank]; //weghalen als je niet wilt ebuggen
}
elseif (isset($_POST[verder]))
{


$_SESSION[erbij] = rand(1,13);
$_SESSION[erbij2] = rand(1,13);

$_SESSION[erbij_eind] = $_SESSION[begin_nummer] + $_SESSION[erbij];
$_SESSION[erbij_eind2] = $_SESSION[begin_nummer_bank] + $_SESSION[erbij2];

if ($_SESSION[erbij_eind] > 21 && $_SESSION[erbij_eind2] <= 21)
{

echo Je getal nu is .$_SESSION[erbij_eind];
echo De bank heeft .$_SESSION[erbij_eind2];
echo Jammer je hebt verloren;
}

elseif ($_SESSION[erbij_eind2] > 21 && $_SESSION[erbij_eind] <= 21)
{

echo Je getal nu is .$_SESSION[erbij_eind];
echo De bank heeft .$_SESSION[erbij_eind2];
echo Jey, je hebt gewonnen;
}

else
{
echo Je getal nu is .$_SESSION[erbij_eind];
echo ;
echo
Debug/Developer mode:De bank heeft nu
.$_SESSION[erbij_eind2]; //weghalen als je niet wilt debuggen
}

}

elseif (isset($_POST[verder2]))
{

$_SESSION[laatst] = rand(1,13);
$_SESSION[laatst2] = rand(1,13);

$_SESSION[eind] = $_SESSION[erbij_eind] + $_SESSION[laatst];
$_SESSION[eind2] = $_SESSION[erbij_eind2] + $_SESSION[laatst2];

if ($_SESSION[eind] > 21 && $_SESSION[eind2] <= 21)
{

echo Je getal nu is .$_SESSION[erbij_eind];
echo De bank heeft .$_SESSION[erbij_eind2];
echo Jammer je hebt verloren;
}

elseif ($_SESSION[eind2] > 21 && $_SESSION[eind] <= 21)
{

echo Je getal nu is .$_SESSION[erbij_eind];
echo De bank heeft .$_SESSION[erbij_eind2];
echo Jey, je hebt gewonnen;
}

else
{
echo Je getal nu is .$_SESSION[eind];
echo ;
echo
Debug/Developer mode:De bank heeft nu
.$_SESSION[eind2]; //weghalen als je niet wilt debuggen
}

}

else
{
echo
Start blackjack?!

;
}

?>


Klik hier voor de (tijdelijke) code

http://sander.freux.nl/klanten/one2xs/blackjack.php

Hij faalt wel een klein beetje met dat zeggen van je hebt gewonnen dit en dat. Hier kijk ik morgen naar, of als iemand anders al eens wilt kijken, is dat ook goed thumbsup.

Ik ga nu voor tv liggen en dan slapen, dus morgen doe ik verder biggrin
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Natuurlijk niet slim om te laten zien hoeveel de bank heeft. yummieVerder leuk script, ik ga het zeker gebruiken als het helemaal af is!
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jochems schreef:
Natuurlijk niet slim om te laten zien hoeveel de bank heeft. yummieVerder leuk script, ik ga het zeker gebruiken als het helemaal af is!
Er staat toch bij dat dat alleen in de debug mode is? bloos
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Sanderc schreef:
Eerdere citaten tonen
Jochems schreef:
Natuurlijk niet slim om te laten zien hoeveel de bank heeft. yummie
Verder leuk script, ik ga het zeker gebruiken als het helemaal af is!

Er staat toch bij dat dat alleen in de debug mode is? bloos
Haha klopt, sorry mijn fout. yummie
// Je begint altijd met 10 en de bank met 12? Dit lijkt me geen pure toeval. yummie
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Heel dat gewonnen en verloren werkt niet als je over de 21 komt kan je gewoon doorspelen etc. emo
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Jellesch schreef:
Heel dat gewonnen en verloren werkt niet als je over de 21 komt kan je gewoon doorspelen etc. emo
Dat zegt hij net, hij gaat morgen verder..
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Misschien handig om zo te doen makkelijke config erbij:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]begin_nummer[/COLOR][COLOR= #007700]][/COLOR] OR [COLOR= #007700]![/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]begin_nummer_bank[/COLOR][COLOR= #007700]]) 
{[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]begin_nummer[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]13[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]begin_nummer_bank[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]13[/COLOR][COLOR= #007700]);

}[/COLOR]

[COLOR= #FF8000]// Config[/COLOR]
[COLOR= #0000BB]$debug[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]aan[/COLOR][COLOR= #007700];[/COLOR]

    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]start[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        
        
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Jij hebt nu: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]begin_nummer[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]<br/> Wens je verder te gaan? <form method="post" action="#"><input type="submit" name="verder" value="Verder"> <input type="submit" name="Stop" value="Stop"></form>[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$debug[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]aan[/COLOR][COLOR= #007700]){[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<br/>Debug/Developer mode: De bank heeft: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]begin_nummer_bank[/COLOR][COLOR= #007700]];[/COLOR] [COLOR= #FF8000]//weghalen als je niet wilt ebuggen[/COLOR]
        [COLOR= #007700]}
    }[/COLOR]
    [URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]verder[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        
            [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]13[/COLOR][COLOR= #007700]);[/COLOR]
            [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij2[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]13[/COLOR][COLOR= #007700]);[/COLOR]
            
            [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]begin_nummer[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij[/COLOR][COLOR= #007700]];[/COLOR]
            [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]begin_nummer_bank[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij2[/COLOR][COLOR= #007700]];[/COLOR]
            
            [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]21[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]] <=[/COLOR] [COLOR= #0000BB]21[/COLOR][COLOR= #007700])
            {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je getal nu is [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]De bank heeft [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] Jammer je hebt verloren[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]21[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]] <=[/COLOR] [COLOR= #0000BB]21[/COLOR][COLOR= #007700])
            {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je getal nu is [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]De bank heeft [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] Jey, je hebt gewonnen[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je getal nu is [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<form method="post" action="#"><input type="submit" name="verder2" value="Verder"><input type="submit" name="stop" value="Stop"></form>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<br/>Debug/Developer mode:De bank heeft nu [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]];[/COLOR] [COLOR= #FF8000]//weghalen als je niet wilt debuggen[/COLOR]
            [COLOR= #007700]}
                
    }[/COLOR]
    [URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]verder2[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]laatst[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]13[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]laatst2[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]13[/COLOR][COLOR= #007700]);[/COLOR]
        
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]eind[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]laatst[/COLOR][COLOR= #007700]];[/COLOR]
        [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]eind2[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]laatst2[/COLOR][COLOR= #007700]];[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]eind[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]21[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]eind2[/COLOR][COLOR= #007700]] <=[/COLOR] [COLOR= #0000BB]21[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je getal nu is [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]De bank heeft [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] Jammer je hebt verloren[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]eind2[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]21[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]eind[/COLOR][COLOR= #007700]] <=[/COLOR] [COLOR= #0000BB]21[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je getal nu is [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind[/COLOR][COLOR= #007700]];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]De bank heeft [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]erbij_eind2[/COLOR][COLOR= #007700]];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] Jey, je hebt gewonnen[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je getal nu is [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]eind[/COLOR][COLOR= #007700]];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<form method="post" action="#"><input type="submit" name="verder2" value="Verder"><input type="submit" name="stop" value="Stop"></form>[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<br/>Debug/Developer mode:De bank heeft nu [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]eind2[/COLOR][COLOR= #007700]];[/COLOR] [COLOR= #FF8000]//weghalen als je niet wilt debuggen[/COLOR]
        [COLOR= #007700]}
        
        
        
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]
        Start blackjack?!<br/>
        <form method="post" action="#">
            <input type="submit" value="start" name="start">
        </form>[/COLOR][COLOR= #007700];
    }[/COLOR]
?>
<hr/>
<sub><a href="/klanten/one2xs/blackjack_code.php">Klik hier voor de (tijdelijke) code</a></sub>


toevoeging op 27 juni 2013, 22:43:58:
Jochems schreef:
Eerdere citaten tonen
Jellesch schreef:
Heel dat gewonnen en verloren werkt niet als je over de 21 komt kan je gewoon doorspelen etc. emo
Dat zegt hij net, hij gaat morgen verder..
Ja zie het, las eroverheen emo
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je blackjack klopt idd niet, ik had tien, druk op verder, en toen had ik 23? haha
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jponsen schreef:
Je blackjack klopt idd niet, ik had tien, druk op verder, en toen had ik 23? haha
Dat kan gewoon, want de kaarten lopen tot nummer 13, maar de meldingen kloppen niet, hij leest ze niet, daar kijk ik straks naar wink
Jochems schreef:
Eerdere citaten tonen
Sanderc schreef:
Eerdere citaten tonen
Jochems schreef:
Natuurlijk niet slim om te laten zien hoeveel de bank heeft. yummie
Verder leuk script, ik ga het zeker gebruiken als het helemaal af is!

Er staat toch bij dat dat alleen in de debug mode is? bloos
Haha klopt, sorry mijn fout. yummie
// Je begint altijd met 10 en de bank met 12? Dit lijkt me geen pure toeval. yummie
Ik destroy de sessie nog niet, hij blijft opgeslagen tot jij je browser sluit
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Onthoud, een gebruiker kan bijvoorbeeld niet 2 X dezelfde kaart krijgen als je het echt wilt houden. De computer kan ook niet de kaart krijgen die jij al gekregen hebt.

Anders kan je bv niet kaarten tellen winkemo
toevoeging op 28 juni 2013, 07:34:40:

$debug = aan;


Neen cry
Daarvoor bestaan booleans.

$debug = true;


toevoeging op 28 juni 2013, 07:36:07:
Als je een blackjack script gaat maken kan je misschien eerst de details ervan leren, want ik zie aan je script dat je 2 maal dezelfde kaart kan trekken sadley
Verder wel goewd bezug wink
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ah sorry, ik heb nooit echt blackjack gespeeld ofzeuw, ik zal wat met jullie tipc doen wink
0
Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je getal nu is 9De bank heeft 7 Jammer je hebt verloren

Wut?yummie
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bovenaan een array maken

$kaartenover = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13);

En dan met [function]arrray_rand[/function] telkens random kaart kiezen, en als je random kaart gekozen hebt die ook uit de array verwijderen zodat die niet 2x getrokken kan worden.
0
Berichten
473
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Antonn

Misschien beter:

$kaartenover = range(1, 13);
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren