Better HN
topnewbestaskshowjobs
Log inSign up

angelaconstance

81 karma · joined Jan 25, 2014 (12y ago) · 5 submissions

Submissions

comment 12y ago · link · parent

Grabbed the strategy from this article (http://www.kotaku.com.au/2014/02/tips-for-playing-threes-the...)! Basically there is a deck of 12 cards (four 1's, four 2's, four 3's) that is shuffled, drawn from, and reshuffled when the deck is empty. Originally I just had it populate randomly from the same distribution, but it resulted in a startlingly high frequency of terrible boards with like 10 red tiles floating around and no blues.

As mentioned in an earlier comment and in the article, the actual iOS game also inserts higher-number cards (6, 12, 24, ...) into the stack occasionally, though I haven't added that element to this version yet.

comment 12y ago · link · parent

Ack so embarrassing. Fixed now! ^^

comment 12y ago · link · parent

Purposely made it nonfunctional (or mostly nonfunctional) on mobile devices, to not step on the toes of the original creators—they're coming out with an Android version soon!

comment 12y ago · link · parent

Think I know what's happening here! My way of preventing too many keystrokes in quick succession is pretty hacky—basically, if you keypress <300ms after your last physical keypress, it doesn't fire an event. More appropriate would be to only suppress the event if it's <300ms after the last keypress that actually fired an event (vs all keypresses). Will fix ... :P

(The game mechanics should be identical to the iOS app though, with the exception of the occasional high-number tiles provided. Also in my todo list to figure out the algorithm the game uses to generate them, haha.)

5.

Show HN: ThreesJS – iOS game Threes for the browser(threes.meteor.com ↗)

81 points · by angelaconstance · 12y ago · 37 comments