gajus / gajus/swing

Initialize with all cards not in deck, so they can be thrown in instead of thrown out

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.6k
Forks
246
PR merge metrics
No merged PRs in 30d

Description

How might I begin with all cards "thrown out" (not in the deck), so they can be thrown in instead of thrown out? For example, the instructions might be "Throw all the red cards onto the stack".

I tried this:
[].forEach.call(document.querySelectorAll('.stack li'), function (targetElement) {
stack.createCard(targetElement);

targetElement.classList.remove('in-deck');
card.throwOut(Direction.LEFT, 400);
});

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.