Page 2 of 3
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:01 pm
				by ta2shop
				GenSwat wrote:LOL  

 got bored checked out ur ink site made you a forum sig?  
 
 

 
wow this is great, thanks  

 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:12 pm
				by GenSwat
				np man anytime
			 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:13 pm
				by ta2shop
				dont now what the admin will think about it but , i hope it is by the rules  

 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:19 pm
				by jacek
				ta2shop wrote:dont now what the admin will think about it but , i hope it is by the rules  

 
It would be without the text.
The image is 100px high, so it has to be just that and nothing else unfortunately.
I want to be strict on this one because I have seen some forums where you have to scroll for miles because of people signatures.
 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:21 pm
				by Tino
				Then I have hereby edited the rules to say signatures can be only 100px high, because they still said 150px.
			 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:22 pm
				by GenSwat
				thats why i made it 150 height earlier, If this is a problem I wont make people forum sigs  

 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:23 pm
				by ta2shop
				ok, changed the signature to fit the rules  
 
 
sorry for the inconviniente. (how do you type that?  

 )
 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:24 pm
				by Tino
				Inconvenience 

 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:25 pm
				by jacek
				Tino wrote:because they still said 150px.
oops, thanks for that.
GenSwat wrote:thats why i made it 150 height earlier, If this is a problem I wont make people forum sigs  

 
no it was my fault for not being clear. sorry 
 
ta2shop wrote:ok, changed the signature to fit the rules  
 
 
sorry for the inconviniente. (how do you type that?  

 )
 
thanks, it was my fault really, I should have remembered to change the rules page.
 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:28 pm
				by ta2shop
				Tino wrote:Inconvenience 

 
thanks you sould read somthing i typed in english like 8 month ago  

 .
anyway, was thinking about the bingoo game script thing ... since it is using digits from 1 to 90 i can just use 
$number = rand(12,21);
 and then some sort of function to randomli print one of those numbers?
 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:31 pm
				by Tino
				No, you would just echo $number and it would display a random number between 12 and 21.
			 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:42 pm
				by ta2shop
				Tino wrote:No, you would just echo $number and it would display a random number between 12 and 21.
my mistake, the number needs to by betwen 1 and 90! so the $number would by
$number = rand(1,90);
right ?
 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 9:50 pm
				by EcazS
				Yes that is correct
			 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 10:44 pm
				by GenSwat
				OMG my first script with out help
<?php
/**
 * @author GenSwat
 * @copyright 2011
 */
$number = rand(1,75);
if ($number <= 15) {
    echo "B-";
} elseif ($number >= 16 && $number <=30) {
    echo "I-";
} elseif ($number >= 31 && $number <= 45) {
    echo "N-";
}
  elseif ($number >= 46 && $number <= 60) {
    echo "G-";
}
  elseif ($number >= 61 && $number <= 75) {
    echo "O-";
}
echo $number;
?>
I am sure this can be done more clean but from researching found the syntax and started from
<?php
$number = rand(1,75);
?>
Bingo Generator
 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 11:02 pm
				by jacek
				Looks clean enough, good job 

 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 11:04 pm
				by GenSwat
				Basically, players buy cards with numbers on them in a 5 x 5 grid corresponding to the five letters in the word B-I-N-G-O. Numbers such as B-2 or 0-68 are then drawn at random (out of a possible 75 in American Bingo, and 90 in British and Australian Bingo  
the above code is for american style bingo so you would have to change it to 1-90 and alter which ones are for B-I-N-G-O in british or austrain 90 ball game
			 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 11:06 pm
				by GenSwat
				jacek wrote:Looks clean enough, good job 

 
Thank You, I was gonna try to use Switch and Case 1 Case 2... but couldn't figure it out
 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 11:11 pm
				by jacek
				GenSwat wrote: I was gonna try to use Switch and Case 1 Case 2... but couldn't figure it out
It's no better than what you have 
 
I very rarely use those.
 
			
					
				Re: who likes Bingooo
				Posted: Sun May 08, 2011 11:12 pm
				by GenSwat
				Now I am guessing you would have to have these numbers run a limit,and check for duplicates.
If number exists generate differant number. also in the american game they draw 43 numbers and uses 42.
I just seen other card there is just numbers and not letters...
			 
			
					
				Re: who likes Bingooo
				Posted: Mon May 09, 2011 5:20 am
				by GenSwat
				TA2shop for a more random drawing of number use this
<?php
$numbers = range(1, 90);
shuffle($numbers);
foreach ($numbers as $number) {
    echo "$number ";
}
?> 
this will list 90 number without alot of overlap
you could add a <br>
 echo "$number " . '<br>';
to make it run vertically
I edited the american version of mine to add the letters B-I-N-G-O in a random vertically
<?php
$numbers = range(1,75);
shuffle($numbers);
foreach ($numbers as $number){    
if ($number <= 15) {
    echo "B-";
} elseif ($number >= 16 && $number <=30) {
    echo "I-";
} elseif ($number >= 31 && $number <= 45) {
    echo "N-";
}
  elseif ($number >= 46 && $number <= 60) {
    echo "G-";
}
  elseif ($number >= 61 && $number <= 75) {
    echo "O-";
}
echo "$number " . '<br>';
}
?> 
			
					
				Re: who likes Bingooo
				Posted: Mon May 09, 2011 8:15 am
				by ta2shop
				wow, after all the criticisem it ricived a did not now ther are people intrested. thanks  
