

even if you shut the program suddenly and start up again, you canĬontinue where you left off). Note: This mode persists game state (i.e.

You will see the housie board displayed along with your tickets.Įnter the numbers called out by the host and these numbers will be automatically crossed out in your tickets. The program expects to find the followed_tickets.json file inside a data folder in the current directory. Create a folder named data in the current directory from where you intend to run the game and place yourįile into that folder. You must name your file followed_tickets.json. It is helpful if you're playing with multiple tickets)īefore starting this mode, you need to create a json file representing the tickets you want to use for the game. (NOTE: It's not as fun to play housie this way xD but It auto-marks your tickets as you enter the numbers called out. This mode was built as a convenience mode for when playing games that are hosted by someone else. The generated tickets are also stored in data/generated_tickets.json in the current directory from.You specify the names of players and the number of tickets per player, and the program generates and prints.


The board is constantly updated with the selected numbers.This mode is for when you are playing a game with friends.This mode displays the housie board on the screen and lets you randomly pick numbers.This section explains each of the features present in the main menu of the game. You have a few options here like: Host a game, Generate tickets, Follow a game.Įach of these is explained in the following section. This will start up the game and show you the main menu. Just open terminal and run the following command. If you are just looking to play the game, it's pretty simple. Make sure you have python 3 installed.Auto-marking the numbers on your tickets, for when you are following a game hosted by someone else.Randomly picking numbers on the board, for when you're hosting a game with friends.Maintaining state of the Housie board and displaying the board visually in terminal.Generating Housie Tickets to play the game (Ticket format is accurate! Numbers are exactly where they are supposed to be).Reuse and build upon any of the components.Īlso provided is a simple terminal-driven menu that let's you generate tickets and play the game, Provides all the core models and logic required to simulate and play the classic game 'Housie' (also known as 'Bingo' or 'Tambola').Īll the code is well segregated, so should be a breeze if you want to
