who likes Bingooo

Talk about anything in here.
User avatar
ta2shop
Posts: 179
Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:

Re: who likes Bingooo

Post by ta2shop »

GenSwat wrote:LOL :lol: got bored checked out ur ink site made you a forum sig? :D
Image

wow this is great, thanks :)
Image
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: who likes Bingooo

Post by GenSwat »

np man anytime
One of my Favorites
Image
User avatar
ta2shop
Posts: 179
Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:

Re: who likes Bingooo

Post by ta2shop »

dont now what the admin will think about it but , i hope it is by the rules ;)
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: who likes Bingooo

Post 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.
Image
Tino
Posts: 360
Joined: Thu May 05, 2011 8:55 pm
Location: The Netherlands

Re: who likes Bingooo

Post by Tino »

Then I have hereby edited the rules to say signatures can be only 100px high, because they still said 150px.
Please check out my CodeCanyon items.
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: who likes Bingooo

Post by GenSwat »

thats why i made it 150 height earlier, If this is a problem I wont make people forum sigs :(
One of my Favorites
Image
User avatar
ta2shop
Posts: 179
Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:

Re: who likes Bingooo

Post by ta2shop »

ok, changed the signature to fit the rules :)
sorry for the inconviniente. (how do you type that? :roll: )
Image
Tino
Posts: 360
Joined: Thu May 05, 2011 8:55 pm
Location: The Netherlands

Re: who likes Bingooo

Post by Tino »

Inconvenience ;)
Please check out my CodeCanyon items.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: who likes Bingooo

Post 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? :roll: )

thanks, it was my fault really, I should have remembered to change the rules page.
Image
User avatar
ta2shop
Posts: 179
Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:

Re: who likes Bingooo

Post by ta2shop »

Tino wrote:Inconvenience ;)

thanks you sould read somthing i typed in english like 8 month ago :lol: .
anyway, was thinking about the bingoo game script thing ... since it is using digits from 1 to 90 i can just use
[syntax=php]$number = rand(12,21);[/syntax] and then some sort of function to randomli print one of those numbers?
Image
Tino
Posts: 360
Joined: Thu May 05, 2011 8:55 pm
Location: The Netherlands

Re: who likes Bingooo

Post by Tino »

No, you would just echo $number and it would display a random number between 12 and 21.
Please check out my CodeCanyon items.
User avatar
ta2shop
Posts: 179
Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:

Re: who likes Bingooo

Post 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
[syntax=php]$number = rand(1,90);[/syntax]
right ?
Image
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: who likes Bingooo

Post by EcazS »

Yes that is correct
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: who likes Bingooo

Post by GenSwat »

OMG my first script with out help

[syntax=php]
<?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;
?>
[/syntax]

I am sure this can be done more clean but from researching found the syntax and started from
[syntax=php]<?php
$number = rand(1,75);
?>[/syntax]
Bingo Generator
One of my Favorites
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: who likes Bingooo

Post by jacek »

Looks clean enough, good job :D
Image
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: who likes Bingooo

Post 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
One of my Favorites
Image
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: who likes Bingooo

Post by GenSwat »

jacek wrote:Looks clean enough, good job :D



Thank You, I was gonna try to use Switch and Case 1 Case 2... but couldn't figure it out
One of my Favorites
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: who likes Bingooo

Post 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.
Image
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: who likes Bingooo

Post 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...
One of my Favorites
Image
User avatar
GenSwat
Posts: 74
Joined: Sat May 07, 2011 3:37 pm

Re: who likes Bingooo

Post by GenSwat »

TA2shop for a more random drawing of number use this

[syntax=php]<?php
$numbers = range(1, 90);
shuffle($numbers);
foreach ($numbers as $number) {
echo "$number ";
}
?> [/syntax]

this will list 90 number without alot of overlap

you could add a <br>

[syntax=php] echo "$number " . '<br>';
[/syntax]

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

[syntax=php]<?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>';
}

?>[/syntax]
One of my Favorites
Image
User avatar
ta2shop
Posts: 179
Joined: Sat May 07, 2011 9:07 am
Location: madrid, Spain
Contact:

Re: who likes Bingooo

Post by ta2shop »

wow, after all the criticisem it ricived a did not now ther are people intrested. thanks :)
Image
Post Reply