choice ( total_numbers ) ticket_array = number total_numbers = 0 elif num = 2 : number = random. choice ( total_numbers ) ticket_array = number total_numbers = 0 elif num = 1 : number = random. Step 1 : Create a 3x9 matrix (array) of zerosįor num in random_indices : if num = 0 : number = random. Let's see how we are gonna build this script.
#TAMBOLA TICKETS IMAGES FREE#
I know, it's not at all a very fancy or difficult script to write but anyway I am free in this lockdown period so I thought why not? So, I thought of creating a python script that would take the number of tickets that we want to generate as input and will return the tickets as an output. Now, of course it's a cumbersome task(and a little biased, too) for a human to generate such tickets, and for the record, we are talking about at least 20-25 tickets per game. RULE #3 - In a specific column, numbers must be arranged in ascending order from top to bottom. RULE #2 - Each column is assigned a range of numbers only: RULE #1 - Each row cannot have more than 5 numbers. So, let's see the rules and then create a Python script that will generate such a housie ticket for us. Now there are some rules to generate housie tickets and you can't just randomly put 15 numbers in any boxes of your choice. So, It's a pretty simple yet interesting and gripping game that one can play with friends and family. Here is a sample housie ticket.Īnd then a caller calls a random number from 1 to 90 and the winner being the first person to mark off all their numbers. So at the beginning of the game, all the players get a ticket in which there are total of 27 boxes and 15 of them are filled with a distinct random number from 1 to 90. Housie is basically a game of probability in which players mark off numbers on cards as the numbers are drawn randomly by a caller.
I've been playing it a lot, lately.įor those who don't know what Housie is, let me explain.
Housie aka Tambola aka Bingo (British Version) is probably the best game to play in Lockdown to get our minds off from Corona and all the negative news from all around the world and to have fun with friends and family. Announcement: I recently developed my own blog at ?? Please check it out.