Skip to content
This repository was archived by the owner on Aug 4, 2018. It is now read-only.

Conversation

@arxanas
Copy link

@arxanas arxanas commented May 11, 2016

This PR is based on top of #149.

This PR implements 'autopicking' functionality. When the user selects a card, it is reserved as the autopick card. If the user's time expires, that card is picked, instead of a random card. Closes #55.

The new interface looks like this:

screen shot 2016-05-11 at 14 19 02

Depicted: Ruin Processor is selected as the autopick card, triggered by clicking it once. The mouse cursor is over Kor Entanglers, so it is highlighted. When time expires, Ruin Processor will automatically be selected.

arxanas added 3 commits May 9, 2016 22:38
Previously, an attempt to run `node app.js` would fail with this
mysterious and wholly unhelpful error:

    undefined:24786
            throw errorReporter.errors;
            ^
    <compile-source>:73:9: Duplicate declaration, specialrnd

Evidently, a declaration is duplicated if it is made across case bodies.
When hovered over, cards now turn slightly brighter. Additionally, the
user can click a card to set it to be autopicked. The card then stays
highlighted, and has the text 'autopick' on its bottom border. If the
user picks another card, the old card is returned to normal and the new
assumes autopick behavior.
When the user selects a card for autopicking, but then their time
expires, the server automatically picks the autopick card on their
behalf rather than picking a card at random. This is behavior similar
to that of MTGO.

If the user fails to select any card at all, the old behavior applies
and one is selected at random.
@arxanas arxanas mentioned this pull request May 11, 2016
@arxanas arxanas closed this May 26, 2016
@arxanas arxanas deleted the autopick branch May 26, 2016 05:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant