|
Created June 2023
"Poker Squares" is fun solo card game that I found awhile ago; it's simple, smart, and fun. You flip down five
cards
face up as your starting row, and pull one card from the deck to add to a column of your choice, with the goal
being
to make a 5x5 board of good horizontal and vertical poker hands. (Another way [the classic way] to play is just by
placing each card you pull down anywhere in the 5x5 grid that doesn't already have a card in it)
The only problem was that manually scoring the game and scouring the board for hands took much longer than
actually
playing the game, so I promptly decided to make a program that would do it for me.
I spent about 4-5 hours making a python script that had the hands-to-be-scored hard-coded into it, which worked
superbly, then
I
made another python program that had CLI functionality (with the ability to input the rows and columns [the poker
hands] as
command-line parameters), and then putting my python script on a webpage (first using pyscript, then abandoning
that
for javascript with the help of a python to
javascript
converter [with minor tweaks]), AND FINALLY modifying the web page/script so that I could input the hands on
a
website, press "calculate scores", and have it all done for me!
Voila.