Housie / Tambola / Bingo Game Number Generator

Its not education , technical or Salesforce related post. Its source code of Family fun game Tambola.

Free online Tambola Game
Free online Tambola Game

This weekend, we all friends gathered together to play one of most famous Indian game Tambola. This game is also known as Housie or Bingo.  Normally there is central pot where numbers between 1 to 90 placed in piece of paper or plastic balls. Host reveals numbers one by one by randomly selecting those balls or piece of papers from pot. Problem for us were, we all have children and there is no way they will allow us to play with this way. Instead of host picking numbers, our kids would have been played with those. So what I did is, simple HTML page with random number generator between 1 to 90. Plugged my laptop to chromecast and voila, everyone in room playing traditional game in modern way 😉

Sometimes, its hard to remember Tambola number meaning, so added those as well.

Play Tambola Game online here.

If anyone interested in Source code, below it is :


Posted

in

by

Tags:

Comments

24 responses to “Housie / Tambola / Bingo Game Number Generator”

  1. Ashutosh Mehta Avatar
    Ashutosh Mehta

    Well done. Good to see that you also posted the description / aliases for the numbers or the way numbers are called in this game. It makes it very interesting. Thank you for this!

    1. Jitendra Zaa Avatar

      Sometimes fun with family is also very important. Enjoy !!!

      1. bharat Avatar
        bharat

        Thank you very much

      2. Shweta Avatar
        Shweta

        Great work

      3. Pratik Jain Avatar
        Pratik Jain

        Hi, thanks for this!! Numbers 28 and 49 did not get generated for me.

      4. Shoba Mothinath Avatar
        Shoba Mothinath

        We have a time set for socials as we are working from home.would like to play this.Can you help.

        1. Shoba Mothinath Avatar
          Shoba Mothinath

          what does king and queen stand for?

      5. thecolourmoontechnologies Avatar
        thecolourmoontechnologies

        number 15 not working

  2. Ashok Chauhan Avatar
    Ashok Chauhan

    how about generating tickets printable on A4 size paper with running serial numbers 6×2 twelve tickets per page

    1. Shailesh Wath Avatar
      Shailesh Wath

      I also need tickets can anyone suggest where I can get tickets.

  3. Shreerang Aras Avatar
    Shreerang Aras

    Very good software. But why the numbers do not appear at the correct places. For example – no. 1 should appear in the first box, no. 2 in second box , no. 90 in last box. Also there should be vocal announcement of numbers.

    1. Ronak Avatar
      Ronak

      It’s arranged vertically.

      1. 10
      2. 11
      3. 12
      4
      5
      6
      7
      8
      9

      And so on

    2. movy Avatar
      movy

      He is indexing from 0…

  4. Shravan Khare Avatar
    Shravan Khare

    Number 9 doesn’t show/come up. Try it!

  5. Big Spins Avatar
    Big Spins

    I also love to play bingo games with my family and sometime playing these type of games is lovable. But the number greater idea is really unique one.

  6. Neelaksh Avatar
    Neelaksh

    They have not shown 39 and 21 and is saying that all numbers are exhausted

  7. Simran Chawla Avatar

    The game is really cool but there’s a bug in the code, without generating some numbers it displays the message the numbers are exhausted, just to help.

  8. harish gaba Avatar
    harish gaba

    hi i want crate own online game tombola

  9. Mady Avatar
    Mady

    I was able to recreate the error that people are seeing of not all numbers getting generated. The issue is when you are impatient and click too many times, or are used to double clicking.

    There is a simple fix for that – we just disable the ‘generate number’ button as soon as we receive a click, and then re-enable it after we are done with generating the next number and the animation.

    Here is the suggested fix of the click handler of the btnGenerate button (indented the 4 additional lines of code):

    $(‘#btnGenerate’).click(function() {
    $(this).val(‘Please wait …’)
    .attr(‘disabled’,’disabled’);
    $(‘#prevNum’).text($(‘#numCounter’).text());
    random = bingo.generateNextRandom().toString();
    $(“#numCounter”).css(“display”,”none”);
    $(“#mirageElement”).css(“display”,””);
    $(‘#numCounter’).text(random);
    //$(‘td.cell’ + random).addClass(‘selected’);
    $(“#mirageElement”).numAnim({
    endAt: 90,
    duration: animDuration
    });
    setTimeout(function(){
    if(bingoNumberWords[random-1]){
    $(“#bingoWords”).text(bingoNumberWords[random-1]);
    }else{
    $(“#bingoWords”).text(“”);
    }
    $(‘td.cell’ + random).addClass(‘selected’);
    $(“#numCounter”).animate({zoom: ‘200%’}, “slow”);
    $(“#numCounter”).animate({zoom: ‘100%’}, “slow”);
    $(‘#btnGenerate’).val(‘Generate Number’)
    $(‘#btnGenerate’).removeAttr(‘disabled’);
    }, animDuration*1000);
    });

    Enjoy!

  10. Gaurav Avatar
    Gaurav

    Where I get tickets to play this game? I want to play this with my Colleagues online on call please help me with tickets

  11. geek4teck Avatar

    Here is the npm package which helps you generate standard Tambola tickets and get Draw Sequence – https://www.npmjs.com/package/tambola

  12. Caroll Avatar
    Caroll

    This is awesome! I love the descriptions. Will definitely use this with my family! Thank you!!!

  13. sahi Avatar
    sahi

    i had try your code by pasting it in notepad with .htm format but its output is not able to run output(i.e. not able to generate numbers)

  14. Sanil Avatar
    Sanil

    I am jooking for tambola website but then i see you give source code too i am very happy with that nice job .

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.