Date: 17 Oct 2022
Module : housie Installation : pip install housie About: As the festive season about to begin and lots of guests at home. Lets entertain them in python way. Today lets see a module, which provides all the core models and logic required to simulate and play the classic game 'Housie' (also known as 'Bingo' or 'Tambola'). Execution: python -m housie Welcome to Housie! Press 'N' to Host a New Game Displays board, randomly picks numbers Press 'T' to Generate Tickets Generate tickets for Players to use to play the game Press 'F' to Follow a Game This mode allows you to follow a game being hosted by someone else, i.e. someone else is calling out the numbers as you sit and mark your tickets. This mode automates the marking of your tickets and shows a nice visual display of the board and your tickets. You can also quit and continue the game from where you left off later. (Game state is persisted) Before using this mode, enter your ticket(s) into 'data/followed_tickets.json' file in the current directory. Then start this mode and keep entering the numbers being called out. The status of your ticket(s) are automatically updated on screen. (This mode saves files into the 'data' folder in order to store the state of the housie board. If you want to start a new game, delete the file named 'data/followed_board.json') Press 'Q' to Quit Select an option to get started: Reference: https://pypi.org/project/housie/
_______________________________________________ Chennaipy mailing list Chennaipy@python.org https://mail.python.org/mailman/listinfo/chennaipy