AlanOC91 / YGOPRODeck

Yu-Gi-Oh! Card Database and Deck Share Site
80 stars 4 forks source link

Pack Opening Simulator #88

Open AlanOC91 opened 5 years ago

AlanOC91 commented 5 years ago

The plan is to add a "fun" booster pack opening simulator for Yu-Gi-Oh!

There is already a rather good one over at http://yugiohpacksimulator.com/ but I'd like to make one more akin to the Hearthstone card pack simulators.

When you open a pack, each card is scored and then each scored is added together to receive your "Pack Score". The eventual plan is to then be allowed submit this score to an online leaderboard to compare. This adds the "fun" factor to opening the pack.

Card score is calculated as follows: Score = (Card Database Views * Card Rarity Weighting)/2 Rarity Weightings:

Common = 1
Short Print = 1.5
Rare = 2
Super Rare = 2.5
Ultra Rare = 3
Secret Rare = 4
All Others: 3.5

Current Alpha version screenshots: Start Screen after choosing a booster set: pack-open-start

Once the flip button is pressed: pack-open

AlanOC91 commented 5 years ago

Leaderboard is now live for the Alpha version of this: https://db.ygoprodeck.com/pack-leaderboard/

AlanOC91 commented 5 years ago

Changes since yesterday: -Fixed Leaderboard. I had it sorting wrongly and limited to displaying 50. When I woke up there was over 300! All data was still captured and will now display correctly. -Added Odds for the Last Card (the potential high rarity card). Y'all were pulling way too many rare cards way too easily! I've now added odds! Now it should be much harder to pull higher rarity cards.

Odds breakdown:

$cardodds = rand(0,99);
    if ($cardodds <5){
        //Secret Rare
    }else if ($cardodds >=5 && $cardodds <= 15){
        //Ultra Rare
    }else if ($cardodds >15 && $cardodds <= 25){
        //Super Rare
    }else if ($cardodds >25 && $cardodds <= 35){
        //Other Rarity
    }else if ($cardodds >35){
        //Common Rarity
    } 
AlanOC91 commented 5 years ago

You can now flip each card individually if you wish so.

Next on the TODO list:

AlanOC91 commented 5 years ago

Added an animated card score counter when all cards are revealed.

TODO:

AlanOC91 commented 5 years ago
AlanOC91 commented 5 years ago
AlanOC91 commented 5 years ago

Features:

Bugs:

TODO:

AlanOC91 commented 5 years ago

Features:

Bugs:

AlanOC91 commented 5 years ago

TODO:

AlanOC91 commented 5 years ago
AlanOC91 commented 5 years ago
AlanOC91 commented 5 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago

Currently seems to be a bug with the "Tournament Pack" packs where you can occasionally get 2 cards instead of 3.

AlanOC91 commented 4 years ago

Start work on adding Mega Packs to pack sim.

AlanOC91 commented 4 years ago

Mega Packs:

2014-2019:

AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AexDEye9 commented 4 years ago

[suggestion] there are alot of other packs that have released over the years, including but not limited to the kaiba mega pack, the gold series, and dark beginnings/dark revelation series, and the star packs.

AlanOC91 commented 4 years ago

Looked into adding Dark Beginnings 1/2 but they are difficult to implement. According to the wiki:

Dark Beginning (and all other Reprint Packs) always contain 6 Monster Cards, 3 Trap Cards, 3 Spell Cards, 1 Tip Card and 1 or even 2 rares.

This will be difficult to implement at the moment. Will look into adding other packs first.

AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago

Next on the agenda.

TODO: Dark Beginning 1 + Dark Beginning 2 followed by Dark Revelations 1,2,3 and 4.

AlanOC91 commented 4 years ago

TODO: Add overall pack-opening statistics

AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AlanOC91 commented 4 years ago
AexDEye9 commented 4 years ago

Legendary duelists season 1 is a behind, i think it released 6 days ago

AlanOC91 commented 4 years ago

I didn't add Legendary Duelists Season 1 because I don't think it's a new pack? Isn't it a case that comes with new cards + old packs that already exist?

Correct me if I am wrong but that was my assumption.

AexDEye9 commented 4 years ago

it is definately a new pack. the pack feels alot like a mega-pack, and also contains some unique cards on top of the existing reprints cards like "Red-Eyes Flare Metal Dragon" are not new, but were not printed in the original legendary duelists sets. Box contains 2 packs, 18 cards per pack: 1 Ultra rare out of a pool of 4 preview cards out of the next set, rise of the duelist (basically replacing the function of special editions) 2 Colorful ultra rares

AexDEye9 commented 4 years ago

Some Major Missing packs: OTS packs Turbo packs Both of these series' fit inbetween the original tournament packs, and astral packs.

AlanOC91 commented 4 years ago
AexDEye9 commented 4 years ago

The legendary duelists season 1 pack in it's current state isn't like it's real life counter part. the two ultra-rare pools are seperate, i just got 2 previews in one pack, and 0 in another which is impossible.

AlanOC91 commented 4 years ago

Yep I am aware but currently in our Database we have no way to "split" the Ultra Rare pools for this set. I'll need to come back to this once I figured out a better way to split the Ultra Rare pools on this without affecting the way we store data majorly. Could take a few days.

AlanOC91 commented 4 years ago

TODO: Overhaul Pack Code to optimize pricing and card pulls. This is still using an old legacy pricing method that is prone to a LOT of errors. Going to re-work it starting with Toon Chaos as a test bed.

AlanOC91 commented 4 years ago
AexDEye9 commented 4 years ago

Some More Missing Packs: Duelist Pack: (Jaden Yuki, Chazz Princeton, Jaden Yuki 2, Zane Truesdale, Aster Phoenix, Jaden Yuki 3, Jesse Anderson, Yusei, Yugi, Yusei 2, Kaiba, Yusei 3, Crow, Yuma, Kite, Yuma 2, Gogogo & Dododo, Kastle Siblings, Battle City, Rivals of the Pharoh)

AexDEye9 commented 4 years ago

Almost forgot, Missing Pack: Champion Packs (GX era tournament packs)

AlanOC91 commented 4 years ago

These changes are not yet live as the infrastructure is not completed yet. Should hopefully have it live by the end of the week.

AlanOC91 commented 4 years ago

Wow I've made a lot of changes to the in-progress beta version:

Chaos Impact

AlanOC91 commented 4 years ago

Going to tweak the scoring mentioned previously. It feels like 80%+ of Yu-Gi-Oh! cards are < $1 so I'm going to have to modify the scoring method or else the majority of cards will have a score of 1.

AlanOC91 commented 4 years ago

New example of weighting. I've implemented a custom price weighting depending on the price range of the card.

newexample