Need help making a bingo game on GKC!

Bingo like host does a random number, players answer a question and after everyone answers a question, it marks the tile (not everyone has that tile), and then not always the fastest player wins? (top-down btw)

Details

Sheets are randomly generated

Code

Pulled numbers are random

Code

set number to number between 1 and (some other number)
if string (get property (pulled numbers)) contains substring (number) {
do this again by retriggering this trigger.
} else {
set property (pulled numbers) to (j0in text (“|”) with (convert number to string(get property (pulled numbers))))
broadcast to channel number
}

Host has a button to pull numbers

Use a counter and blocks for that

Idk ask more people

1 Like

What I need help with is the marking bingos and tiles, and waiting until everyone answers.

I can make it look good if you want, making it work is something that i cannot do for my life

1 Like

I can make it look good, It’s the programming I need

BUMP

This one seems difficult.

Well first we’d need a number generator, and once that number is pulled it get’s removed.

I’d do that like this.

Make a property called pulled numbers. It will be a text, not number property.
Then put a trigger w/ these blocks

set number to number between 1 and (some other number)
if string (get property (pulled numbers)) contains substring (number) {
    do this again by retriggering this trigger.
} else {
    set property (pulled numbers) to (j0in text ("|") with (convert number to string(get property (pulled numbers))))
broadcast to channel number
}

5 Likes

ik its the MARKING the bingo

Are the bingo sheets going to be randomly generated or a bunch of copies made to look random?

2 Likes

randomly generated

Ok, you could have the numbers put into a list, and seperated with the |'s. Then you could have another list filled with t’s and f’s, standing for true and false.

Another device could then loop through, checking if player has the number and counting the number of |'s. If so, the player has the number, using the same amount of pipes, it would change the corresponding f with a t and broadcast on a channel.

The channel message will say the square number and player sheet, which the marking at that square will activate. When the list only has t’s (for blackout) or a row / column (5 in a row or modulo function), the thing will say bingo and end the game.

Or, the t’s and f’s could be read by a text screen, which is harder to make, more memory (I think), but more scaleable

2 Likes

at this point I’m gonna make a guide when I finish…

Next, I need a way to DISPLAY the cards and where all players are in the same room but see different cards.

But I don’t know if that’s possible…

It’s possible!

I forgot to mention, everything should be player scoped except for the current number. Everything else while be activated via a relay. For displaying the card, I’d place 5 text things and have blocks set the text to the 5 card numbers for that row plus a lot of spaces in between

2 Likes

But the text doesn’t have player scoping

and if different text for each player, +2.5mem for each card

No it does. The scope thing is at the bottom of the first menu when you open the text

1 Like

:neutral_face: :neutral_face: :neutral_face:
why did I not see that

Ok now I need to make the system for

  1. Waiting till everyone answered the question
  2. revealing the number
  3. marking the number
    and finally
    (the hardest)
  4. checking for bingos