2048
2048 copied to clipboard
Added a total moves counter
Added a total moves field to display the moves made since starting the game.
This PR is troublesome. Although I'm not sure about the idea behind the counter itself, I'm also afraid this wouldn't work well on mobile, because the two containers already barely fit.
Screenshots
Pretty sure that'd break when the score is above 1000.
If this was a wanted feature I'd have a click handler on the best box which toggles between best and moves. Least that's how I would add it.
That is to say there is still the debate of if it's a wanted feature or not.
It might be good to have but only if the layout problems are solved. Switching between best and moves on click might be interesting but it also introduces a discoverability problem: how do the users know that clicking does that?
Put scoreboard buttons as single row directly above game board or put "best score" to the top row (next to "2048 title) or adjust font size for extra spacing when the score board takes the whole row.
I'd love to have the moves counter... but adding more takes away from the minimal design.
Maybe have the stats show up at the end?
+1 for @warmwaffles
Working on @warmwaffles suggestion
I have modofied the Master to add a moves counter. What do you think about this at http://philippe.corbes.free.fr/2048 I think we should also add a clock ;)
I like this idea with moves counter. Maybe we can show it only on desktop and figure out something for mobiles later?