Terraforming-mars: Prevent single click "no cards buy" action

Created on 26 Oct 2020  路  10Comments  路  Source: bafolts/terraforming-mars

Untitled

Very basic confirmation to prevent misclicking and buying 0 cards.
Even with the extra padding around the button, there is s high chance of misclick on mobile when aiming for the first card.

  • if no cards are selected and "buy" is clicked, show a 2nd button (button "buy" become disabled)
  • if the 2nd button is displayed, selecting a card removes it
enhancement

Most helpful comment

I like the "n cards" text on the button. Several times I have sold 2 patents when I only meant to sell 1 (because in some contexts selecting a card automatically deselects the previously selected card, but in that one it (duh) doesn't).

All 10 comments

Yes Yes Yes please 馃憤 Lost a game yesterday because of this, even though I wasn't playing on a mobile phone.

I was thinking about the same problem today. I had a different UX in mind.
How about just a skip buy button (which is not a button but grey underlined text) next to the buy WITH confirmation for skip buy.

[Buy] _skip buy_

With this approach we don't have to add a second button on confirm.
Both approaches require two clicks. Benefit of your approach is that you don't see the skip button text, the drawback is that if a person doesn't know how to skip buy, she will be wondering how to do it as it says Buy which means you buy :)
The advantage of my approach is that both actions are available for the user to choose from, drawback is it adds a bit more clutter on the page.

We could use the in-game alert for that so that, much like confirming overspending.

@Lynesth that is great but we still have to be able to guide the user w/o making them think about what could go wrong.
Optimal solution to this is:

  • State A - no selected card => A disabled button with label "Buy" (this will hint the player that an action needs to be taken)
  • State B - one or more selected cards => Button becomes enabled and text is "Buy 1* cards"
    ! additional "skip buy" as I explained above next to the Buy button ( I still think it will be less confusing to the user if represented with all the actions) - this "skip buy" can be added to other elements instead of "Do nothing" radio button for example - and here we would need the in-game alert.

Why not the same button, that changes between "Don't buy cards" and "Buy X card(s)" depending on number of cards selected ?

Or that :)
The only difference is that not buying cards would only be possible if all of them are deselected and "skip buy" lets you do it anytime.
I like your solution and I've always imagined dynamic labels for the buttons as their meaning does change on many occasions based on previous actions. Feel free to open another issue on how to approach this on a higher level and we can discuss who and how to do it.

I vote for -> Buy 'n' Card(s)

+1 for dynamic label. Especially if it change color to red for action that player should double check like "discarding" or "buying no card".

I like the "n cards" text on the button. Several times I have sold 2 patents when I only meant to sell 1 (because in some contexts selecting a card automatically deselects the previously selected card, but in that one it (duh) doesn't).

I will implement this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vincentneko picture vincentneko  路  3Comments

duckmammal picture duckmammal  路  5Comments

rodrigomp84 picture rodrigomp84  路  5Comments

duckmammal picture duckmammal  路  3Comments

dabewi picture dabewi  路  5Comments