# Variables

### Player

**Y\_money (float)**: amount of money the player (You) has in store. Updating at the start of the whole game, during the phase 4 after the Betting phase, or at the end of a round at the calculation gain.&#x20;

**Y\_currentBet (float)**: amount of bet for the round. Updated at the start of the round (to reset it) and during the Betting Phase, when the player clicks on the button to increase or reset the bet amount.&#x20;

**Y\_drawnCard (S\_cardInHand)**: cards the player has drawn. Updated with the clearDrawnCards (wipe) or each time the player (You) draws a card (phase 4 and 5 if needed)

**Y\_currentPoints (float)**: number of points for the player (You) according to his hand. Updated at the start of a game / round (reset) or each time the player draws a card.&#x20;

### Dealer

**D\_drawnCards (S\_cardInHand)**: cards the Dealer has drawn. Updated with the clearDrawnCards (wipe) or each time the Dealer draws a card (phase 4 and  6 if needed). Also updated in the revealDealerCard function.

**D\_currentPoints (float)**: number of points for the Dealer according to his hand. Updated at the start of a game / round (reset) or each time the Dealer draws or reveals cards.

### Other

**Deck (S\_card)**: deck of cards from which cards for the player / dealer are drawn. Populate at the start of a game / round and updated when shuffled or each time a player (You or Dealer) draws a card. Based on the Data Table DT\_cards

**W\_main**: reference to the main UI (widget) that contains all the widgets the AC needs to work.&#x20;

Note: deck and Y\_drawnCard/D\_drawnCard don't use the same structure. Deck shares the same structure as DT\_cards, and I didn't want to include in the DT the bool faceIsUp, which is not relevant for the DT. And that's why the function drawCards() converts a card from deck into a card for Y\_drawnCard/D\_drawnCard by adding the bool isFaceUp.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://easy-blackjack.gitbook.io/easy_blackjack-docs/ac_blackjack-actor-component/variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
