Hanabi with no reminder of clues that were given

Suggestions & ideas / Suggestions & idées
Locked
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Hanabi with no reminder of clues that were given

Post by pikiou »

Just to add some more challenge, here is the Javascript code to hide or show clues reminders present on cards.
It basically adds two buttons top right of the screen that allow to switch between the two hide or show modes. Once in hide mode, new clues will disappear after a short while.
If you tried it, please post here what you thought about the experience!

Code: Select all

gameui.hideClues = false; gameui.hideShowHandler = false; gameui.hideShowClues = function () {dojo.query('.clue').forEach(function (elmt) {dojo[dojo.style(elmt, 'visibility') == 'visible' && gameui.hideClues ? 'fadeOut' : 'fadeIn']({node: elmt}).play();});}; dojo.place('<div style="display:inline-block; position:absolute; right: 0; bottom: 0; font-size: 80%;"><a id="hideClues" href="#" class="action-button " style="margin-left: 0" onclick="return false;" id="tunnel">Hide</a> / <a id="showClues" href="#" class="action-button " style="margin-left: 0" onclick="return false;" id="tunnel">show</a> clues</div>', 'maintitlebar_content'); dojo.connect($('hideClues'), 'onclick', function () {gameui.hideClues = true; gameui.hideShowClues(); gameui.hideShowHandler = dojo.connect(gameui, 'removeClueToken', function () {window.setTimeout(gameui.hideShowClues, 2500);});}); dojo.connect($('showClues'), 'onclick', function () {gameui.hideClues = false; gameui.hideShowClues(); dojo.disconnect(gameui.hideShowHandler);});
If you think this code might be malicious, I'm a game developer on BGA (proof here).

To use this code, open your Javascript console once a game of Hanabi is started, then copy/paste the code from above into the command line input and execute it by pressing enter. You'll see a Hide/show button appear above your cards.
To open your Javascript console, check >this guide<.
Last edited by pikiou on 02 February 2015, 21:03, edited 1 time in total.
User avatar
csq
Posts: 6
Joined: 21 December 2013, 22:40

Re: Hanabi with no reminder of clues that were given

Post by csq »

coolest feature ever, pikiou! thank you for making this possible (:
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Re: Hanabi with no reminder of clues that were given

Post by pikiou »

Thanks ^^ We made a couple of stupid mistakes thanks to this mode! Next time we play multicolor for even more mistakes!
I added instructions to get to the Javascript console, it's not that easy...
sparr
Posts: 65
Joined: 08 April 2014, 02:12

Re: Hanabi with no reminder of clues that were given

Post by sparr »

I had an idea to make a userscript that does the opposite of this. I don't want to hide clues. I want to show MORE information. So, when a "2" is clued, every other card gets marked "not 2", etc.
User avatar
qqzm
Posts: 5
Joined: 09 August 2013, 13:08

Re: Hanabi with no reminder of clues that were given

Post by qqzm »

sparr wrote:I had an idea to make a userscript that does the opposite of this. I don't want to hide clues. I want to show MORE information. So, when a "2" is clued, every other card gets marked "not 2", etc.
+1 This would be really useful as it's a glaring omission from the implementation as is.
Locked

Return to “Suggestions”