asl97 / Bingo-Spinner

A simple bingo spinner with text to speech
https://asl97.github.io/Bingo-Spinner/
MIT License
0 stars 0 forks source link

Batch generating cards and ensuring unique winners #11

Closed asl97 closed 10 months ago

asl97 commented 10 months ago

order of number doesn't matter for winning, each card has 12 winning combinations of numbers.

sort the numbers combination and convert sequence of numbers into strings, check against global 'sets' storage and store in temp array

once verified all 12 numbers set are unique, transfer from temp array into global 'sets'

asl97 commented 10 months ago

note on page break <div style="break-after:page"></div>

asl97 commented 10 months ago

note/warning: don't attempt to print more than 9999 cards, by default, there is only 9999 premutation per 'CS' series.

It will hang.

samples: Bingo cs75 (1) 1s large id.pdf Bingo cs75 (4) 4s large id.pdf Bingo cs75 (9) 9s large id.pdf

asl97 commented 10 months ago

usable at the dev branch for now

https://asl97.github.io/Bingo-Spinner/branch/dev/

asl97 commented 10 months ago

added barcode

image

sample: Bingo cs75 (1) 1s barcode.pdf

asl97 commented 10 months ago

Samples are all flipped due to a mistake in the code, new cards printed after 59a9cad5e11af085a4e13424156a5da1d6e8e34c are fixed

Use the flip card checkbox when scanning old cards to get the same layout of numbers displayed image