bskinn / bga-wingspan-scraper

Firefox extension to scrape data from a Wingspan game replay on BGA
MIT License
2 stars 0 forks source link

Tracking discarded bonus cards #34

Open bskinn opened 1 year ago

bskinn commented 1 year ago

Cards in discards. All discards are public knowledge, so we can know what they are.

This will find all divs from the move log that represent discarded birds:

$$('div[id^="cardnotif_bird"]').filter(div => div.parentElement.textContent.includes('discard'))

(Presume analogous approach for discarded bonus cards?)

We can't see the ID of tucked birds this way, though.

We can see which birds the perspective player tucked from their hand.

We cannot see which birds were tucked directly from the deck, as by Canada Goose.

Originally posted by @bskinn in https://github.com/bskinn/bga-wingspan-scraper/issues/12#issuecomment-1767625377