Discuss Scratch

-Bingo_Games-
New Scratcher
1 post

Bingo

So I wanna make a collection of different bingo games, hence my username. Except I'm having trouble with making the bingo cards. How do you randomize the cards? In my first project there's two game modes which are computer and multiplayer (Don't worry this means in real life). I'm working on the computer, so how do you randomize your bingo cards, make the random numbers, help the computer sense when its card has a number that is shown, randomize the bingo card of the computer, and make sure that you don't mark a number you don't have in your card? If making bingo isn't possible, that's okay. I just wanted to try something new.
awesome-llama
Scratcher
1000+ posts

Bingo

It's all possible to do in Scratch.

For this, you'll want to look at storing things in lists. Lists are just like variables except you can store multiple “items” within it. With this, you can use a list to store all the numbers on a card. As you'll be working with a grid of numbers you can come up with a way to convert between a location on that grid and an item number. Often, this is done with list items arranged like so:

a 4x4 grid, each number is the location within the list (the “index”)
 1  2  3  4
5 6 7 8
9 10 11 12
13 14 15 16

Make two lists so that both players' cards have somewhere they can be stored.

Then, everything you want to do will be done with the lists. Creating bingo cards would require adding items to the lists, random numbers can be generated easily here. You could create extra lists to also store which numbers have been used. Sensing for a win would require a bunch of checks for if a certain set of bingo squares have been called already.
I will elaborate further if you do decide on continuing with this project. There's a lot to explain and my one reply is not going to do it.
ventoaurum
Scratcher
100+ posts

Bingo

I really want to help you, but because I'm new to BINGO, I have a question that I think is important:

Can a bingo column have the same number? like this for example:
B
5
15
12
5
8
is that possible?
ventoaurum
Scratcher
100+ posts

Bingo

I've found the answer, it could not repeat, anyway here is my take on helping you
the “tutorial” is inside, just click “See inside”
iaminfinityiq
Scratcher
12 posts

Bingo

ventoaurum wrote:

I really want to help you, but because I'm new to BINGO, I have a question that I think is important:

Can a bingo column have the same number? like this for example:
B
5
15
12
5
8
is that possible?
Answer: BINGO can't have the same number so it's easy to play
Zan3L
Scratcher
92 posts

Bingo

define WHAT DO I DO HERE

Last edited by Zan3L (Feb. 20, 2022 06:08:05)

ventoaurum
Scratcher
100+ posts

Bingo

Zan3L wrote:

define WHAT DO I DO HERE
dont do anything and just shut your mouth
Player_Among_Us
Scratcher
42 posts

Bingo

Powered by DjangoBB