[Chennaipy] Chennaipy - Monday Module - 17 Oct 2022

selvi dct selvi.dct at gmail.com
Mon Oct 17 14:36:03 EDT 2022


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/chennaipy/attachments/20221018/bc0d0d8b/attachment.html>


More information about the Chennaipy mailing list