Avatar billede techboy992 Praktikant
19. oktober 2015 - 10:51

Check af bingo plader

Hej alle sammen

Jeg sidder og er ved at lave et bingo system, men er stoedt in i problem som jeg ikke rigtig kan finde loesningen paa.

Jeg en database med udtrukne numre
og en bingo plader ogsaa i database

hvordan komparer jeg nemmest numre for at chacke om der er en vinder paa kortne

i trukne numre i databasen start fra n01 - n75
paa pladerne er der 25 numre start fra n1-n25


Det er lidt specielt bingo hvor man forskellige vinder muligheder, der nogle exempler her:

$fullcard=array("$nu1","$nu2","$nu3","$nu4","$nu5","$nu6","$nu7","$nu8","$nu9","$nu10","$nu11","$nu12","$nu13","$nu14","$nu15","$nu16","$nu17","$nu18","$nu19","$nu20","$nu21","$nu22","$nu23","$nu24","$nu25");
$jet=array("$nu3","$nu7","$nu10","$nu11","$nu12","$nu14","$nu15","$nu17","$nu20","$nu23");
$happyface=array("$nu4","$nu6","$nu10","$nu15","$nu16","$nu20","$nu24");
$hangman=array("$nu1","$nu2","$nu3","$nu4","$nu5","$nu6","$nu11","$nu15","$nu16","$nu17","$nu18","$nu19","$nu23","$nu25");
$gobingo=array("$nu16","$nu17","$nu18","$nu19","snu20","$nu21","$nu22","$nu23","$nu24","$nu25");
$fourcorners=array("$nu1","$nu5","$nu21","$nu25");
$explosion=array("$nu1","$nu5","$nu8","$nu12","$nu14","$n18","$nu21","$nu25");
$eightpack=array("$nu1","$nu2","$nu3","$nu4","$nu6","$nu7","$nu8","$nu9");
$doublebingo=array("$nu3","$nu6","$nu7","$nu8","$nu9","$nu10","$nu18","$nu23");
$dollarsign=array("$nu1","$nu2","$nu3","$nu5","$nu6","$nu8","$nu10","$nu11","$nu12","$nu14","$nu15","$nu16","$nu18","$nu20","$nu21","$nu23","$nu24","$nu25");
$diamond=array("$nu3","$nu7","$nu8","$nu9","$nu11","$nu12","$nu14","$nu15","$nu17","$nu18","$nu19","$nu23");
$chessboard=array("$nu1","$nu3","$nu5","$nu7","$nu9","$nu11","$nu15","$nu17","$nu19","$nu21","$nu23","$nu25");
$checkmark=array("$nu3","$nu4","$nu5","$nu9","$nu17","$nu21");
$cornered=array("$nu2","$nu3","$nu4","$nu5","$nu8","$nu9","$nu10","$nu14","$nu15","$nu20");
$champagneglassfull=array("$nu1","$nu6","$nu7","$nu10","$nu11","$nu12","$nu14","$nu15","$nu16","$nu17","$nu20","$nu21");
$champagneglassemty=array("$nu1","$nu7","$nu10","$nu14","$nu15","$nu17","$nu20","$nu21");
$champagnebottle=array("$nu8","$nu9","$nu10","$nu11","$nu12","$nu14","$nu15","$nu18","$nu19","$nu20");
$cents=array("$nu7","$nu8","$nu9","$nu11","$nu12","$nu14","$nu15","$nu17","$nu19");
$bowtie=array("$nu4","$nu5","$nu9","$nu10","$nu16","$nu17","$nu21","$nu22");
$anchor=array("$nu1","$nu4","$nu6","$nu10","$nu11","$nu12","$nu14","$nu15","$nu16","$nu20","$nu21","$nu24");
$airplane=array("$nu2","$nu3","$nu4","$nu8","$nu16","$nu17","$nu18","$nu19","$nu20","$nu23");

Haaber nogen der kan hjaelpe mig
Paa forhaand tak
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester