Skip to content

Tool that consumes an existing bingo board jpg and generates any number of new, randomly shuffled boards

Notifications You must be signed in to change notification settings

hoopahmadness/bingo-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bingo-tool

Tool that consumes an existing bingo board jpg and zero or more "partial boards" and generates any number of new, randomly shuffled boards from all of the tiles.

The tool takes in one input: the filename for a config file which may or may not yet exist. If the config file does not exist, the bingo-tool create an example config file. The config file is simple json and can be edited by hand as needed.

Most BINGO boards have a 5x5 layout with a freespace in the middle. This tool can work on boards with arbitrary numbers of rows and columns. If there are an odd number of tiles, then the middle will be assumed to be a freespace.

Bingo-tool requires several parameters in the config:

  1. The filename of the bingo board to be used as a template.

  2. A list of names - A new name.jpg file will be generated for each name in the list. Make boards for all your friends!

  3. The coordinates of the top left box (top left corner and bottom right corner), given that <0,0> is the top left corner of the image.

  4. The coordinates of the box down and right from the first box (only the top left corner needed), given that <0,0> is the top left corner of the image.

  5. Number of horizontal rows (typically five)

  6. Number of vertical columns (typically five)

  7. Seed Integer - This will be automatically generated on first run, and can be changed or kept by the user on subsequent runs. This allows you to have a deterministic output for subsequent runs, meaning the boards that are generated will be the same random boards each time. To generate new boards, just change or remove the number in the config.

  8. Extra Squares: if you would like to add extra squares to the shuffle (such that each board will no longer be gauranteed to have the same squares as the other boards), you can do this by adding one or more Extra Squares options to the config. You should put your extra squares on an identical copy of your main template board (that is, the squares are in all the same positions), filling them in from left to right, top to bottom. The extra board does not need to be filled in all the way, you can have an arbitrary number of squares on each board. Unlike main template boards, extra square boards don't have a "Free space"; it's just a space like any other. In the config, each option should include a filename for the partial board and the number of squares the boad contains.

About

Tool that consumes an existing bingo board jpg and generates any number of new, randomly shuffled boards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages