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
}
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
}
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
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