Page 1 of 1

Hanabi with no reminder of clues that were given

Posted: 01 February 2015, 05:42
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<.

Re: Hanabi with no reminder of clues that were given

Posted: 02 February 2015, 01:53
by csq
coolest feature ever, pikiou! thank you for making this possible (:

Re: Hanabi with no reminder of clues that were given

Posted: 02 February 2015, 20:58
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...

Re: Hanabi with no reminder of clues that were given

Posted: 06 February 2015, 19:50
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.

Re: Hanabi with no reminder of clues that were given

Posted: 16 March 2015, 15:48
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.