Skip to content

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

@mdmcginn

Description

@mdmcginn

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);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions