Hanabi-Live / hanabi-live

A web server that allows people to play Hanab, a cooperative card game of logic and reasoning.
https://hanab.live
GNU General Public License v3.0
177 stars 114 forks source link

Add a 'variant of the day' to the website #2773

Open Romain672 opened 1 year ago

Romain672 commented 1 year ago

Hi world. So I did a document to have a custom variant chosen each day: https://docs.google.com/spreadsheets/d/1PBuO1tyHA16_Ti5sSlKxBnpd2yt-VwSJXRvtuIUzIpU/edit#gid=1136305487 .

But I just though of going deeper into that idea. You first create a document which generate random variants for every day. (I will detail that in the second post) You would add a 'variant of the day' in the long list of custom variants, which, when picked, would do two things:

Romain672 commented 1 year ago

Here is the value I gave to each variant: None | 120 Rainbow | 75 White | 50 Pink | 50 Omni | 30 Light Pink | 30 Muddy Rainbow | 20 Brown | 30 Null | 10 Prism | 30 Black | 20 Dark rainbow | 12 Gray | 8 Gray pink | 8 Dark omni | 6 Gray pink | 6 Cocoa rainbow | 4 Dark brown | 6 Dark null | 2 Dark prism | 6

Deceptive-Ones | 6 Deceptive-Fives | 6 Ambiguous | 20 Very Ambiguous | 6 Extremely Ambiguous | 4 Dual-Color | 10 Special Mix (5 Suits) | 2 Special Mix (6 Suits) | 2 Ambiguous Mix | 2 Dual-Color Mix | 2 Ambiguous & Dual-Color Mix | 2 Candy Corn Mix (5 Suits) | 2 Candy Corn Mix (6 Suits) | 2 Critical Fours | 6 Clue Starved | 10 Color Blind | 1 Number Blind | 1 Totally Blind | 1 Color Mute | 1 Number Mute | 1 Alternating Clues | 6 Cow & Pig | 6 Duck | 6 Odds and Evens | 10 Synesthesia | 10 Reversed | 20 Up or Down | 20 Throw It in a Hole | 10 Funnels | 20 Chimneys | 20 Suit-Ones | 30 Suit-Fives | 30 Two colors? | 160

Then you start by chosing a random variant with those weights, if that variant require two colors or a specific color attached to it, you generate one that you add to that variant. Then you pick another color to add to this variant.

Then, you check if the variant exist, if yes, you leave it like that. Else, you try to swap the colors before and after the &. Then, you try to remove the dark suit and replace it with a normal suit. Then you remove that normal suit. I'm pretty sure it can be simpler, but it's how I did it.

Romain672 commented 1 year ago

Maybe adding a message every day either on discord with a bot in the general-lobby ; or in the hanab.live website in the chat with the variant of the day and the seed can be enough.