#78674: "The entire card deck is exposed to the player via `gameui.gamedatas.deck`"
What is this report about?
What happened? Please select from below
What happened? Please select from below
Please check if there is already a report on the same subject
If yes, please VOTE for this report. Reports with the most votes are given PRIORITY!
# | Status | Votes | Game | Type | Title | Last update |
---|
Detailed description
• Please copy/paste the error message you see on your screen, if applicable.
The player's cards aren't completely hidden. The card deck is not hidden.• Please explain what you wanted to do, what you did and what happened
No.• Which browser are you using?
Google Chrome v108
• Please copy/paste the text displayed in English instead of your language. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
The player's cards aren't completely hidden. The card deck is not hidden.• Is this text available in the translation system? If yes, has it been translated for more than 24 hours?
No.• Which browser are you using?
Google Chrome v108
• Please explain your suggestion precisely and concisely so that it's as easy as possible to understand what you mean.
The player's cards aren't completely hidden. The card deck is not hidden.• Which browser are you using?
Google Chrome v108
• What was displayed on the screen when you were blocked (Blank screen? Part of the game interface? Error message?)
The player's cards aren't completely hidden. The card deck is not hidden.• Which browser are you using?
Google Chrome v108
• Which part of the rules was not followed by the BGA adaptation
The player's cards aren't completely hidden. The card deck is not hidden.• Is the rules violation visible on game replay? If yes, at which move number?
No.• Which browser are you using?
Google Chrome v108
• What was the game action you wanted to do?
The player's cards aren't completely hidden. The card deck is not hidden.• What did you try to do to trigger this game action?
No.• What happened when you tried to do this (error message, game status bar message, ...)?
• Which browser are you using?
Google Chrome v108
• At which step of the game did the problem occur (what was the current game instruction)?
The player's cards aren't completely hidden. The card deck is not hidden.• What happened when you tried to do this game action (error message, game status bar message, ...)?
No.• Which browser are you using?
Google Chrome v108
• Please describe the display issue. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
The player's cards aren't completely hidden. The card deck is not hidden.• Which browser are you using?
Google Chrome v108
• Please copy/paste the text displayed in English instead of your language. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
The player's cards aren't completely hidden. The card deck is not hidden.• Is this text available in the translation system? If yes, has it been translated for more than 24 hours?
No.• Which browser are you using?
Google Chrome v108
• Please explain your suggestion precisely and concisely so that it's as easy as possible to understand what you mean.
The player's cards aren't completely hidden. The card deck is not hidden.• Which browser are you using?
Google Chrome v108
Report history
Here's a script that uses this information, which we definitely shouldn't have, and prints the player's hand and the top card of the deck.
```
(function() {
function printPlayerHand() {
const cardsDiv = document.getElementById(`playertablecard_${gameui.player_id}`);
const cards = [...cardsDiv.getElementsByClassName("card")].reverse();
const message = cards.map(card => {
const cardId = card.id.split("_").at(-1);
const info = gameui.gamedatas.deck[cardId];
return info ? `${info.type_arg} ${gameui.colorNames[info.type]}` : "?";
}).join(", ");
console.log(`Your hand: ${message}`);
}
function printNextCard() {
const cardsLeft = Number(document.getElementById("deck_pile_item_1").textContent);
const info = gameui.gamedatas.deck[String(cardsLeft * 2)];
console.log(`The next card in the deck: ${info.type_arg} ${gameui.colorNames[info.type]}`)
}
printPlayerHand();
printNextCard();
})();
```
Output: i.imgur.com/UjiO7xF.png
Now I know my cards are (4 blue, 2 white, 5 green, ?) without needing any clues. "?" means this card is one of my starting cards, so it's not in the `deck` object.
Interestingly enough, I couldn't find any usage of this object in the code. If that's true, I'm guessing it's a pretty easy fix.
Add to this report
- Another table ID / move ID
- Did F5 solve the problem?
- Did the problem appear several times? Every time? Randomly?
- If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.