quinto icon indicating copy to clipboard operation
quinto copied to clipboard

missing a 6 in the tile distribution

Open wxl opened this issue 7 years ago • 2 comments

I introduced your Quinto to a friend at work and he became as addicted to it as I was. We decided we wanted a networked version to play against each other and figured we could whip something up in Google Sheets really quick. We copied your tile distribution and all was going well until we took a closer look at the distribution.

Here's the 5's: https://github.com/jrheard/quinto/blob/2913a907344d2c016793785badf276c3c86dc04f/src/quinto/deck.cljs#L17

and on the next line we have the 6's: https://github.com/jrheard/quinto/blob/2913a907344d2c016793785badf276c3c86dc04f/src/quinto/deck.cljs#L18

OOPS!

However, to be fair, it does seem that the link you grabbed that from does include that particular distribution that misses the 6's.

wxl avatar Mar 07 '18 00:03 wxl

what an enjoyable bug report! i believe this was fixed in https://github.com/jrheard/quinto/commit/775533bf99f31b396b6490611cb1e112245d2974#diff-d271dd2586c1688460827ae1777ed478 , but it looks like i forgot to update the live jrheard.com version of the game after making that commit locally on my machine - whoops! i'll add that to my todo list. thanks for the heads up, and for this excellently written report!

have you gotten that google sheets version working? i love the idea!

you might find this comment interesting: https://lobste.rs/s/5uoglg/quinto_resurrecting_abandoned_board#c_r0tcjj . looks like this guy wrote a multiplayer version of quinto!

jrheard avatar Mar 07 '18 01:03 jrheard

You'll notice that my report was based on the tree as linked from the blog page. Whether or not the live version is running off that tree I guess is the question. I have to say, though, wouldn't we expect the game to never have any 6's? I swear I've seen them…

Regarding Google Sheets, yeah, we got something working. We went with the original tile distribution of 83 tiles and a 15x15 playing board. There's a tray for each player to hold their tiles. There's a running track of the remaining tile distribution based on what's in those three areas. Whenever the tile count is zero, that cell conditionally formats to black, so it's obvious that it's used up. Every turn, a random number function is used to pick a new tile (which, because of limitations in Google Sheets, requires editing the sheet). It's compared to the remaining distribution, and if that tile is still valid, it's added to the tray. There's no logic for making sure the game is played right, per se, but we do manually try to black out the ends of a run of 5 and we use sum functions to calculate the score, so generally we're pretty good to go.

It's super trivial, but it works as well as the physical board game. Not bad for about 20-30 minutes ;) Unfortunately, as much as I really want to to be adept at Clojure, I don't see myself as capable of doing anywhere near that in the same amount of time.

Thanks for the hint on the multiplayer version, by the way!

wxl avatar Mar 07 '18 18:03 wxl