DEPUTY CASINO & GAME ROOM - FS25 - v2.0.0.0

INSTALL
Stop the dedicated server and fully close FS25. Remove older DeputyBlackjack
ZIPs and extracted copies from all client mods folders and the server.
Install ONLY FS25_DeputyCasino_v200.zip. Enable Deputy Casino & Game Room v2.0.0
on your save, restart the server, and have every client use this identical ZIP.
Keep the ZIP intact. Your usual save and farm balance are not reset.

OPEN AND CHOOSE A GAME
Press F9 while on foot. Open Casino Game Room can also be remapped in controls.
The menu offers Blackjack, Slots, Poker, Uno-style, Gin Rummy, Chess, Checkers,
and Scratch-offs. Select AI opponent or Another player BEFORE choosing a
card/board game. Slots and tickets are individual activities.
Every enabled button/card/square makes a soft click. Game menu returns to the
hub; Close or Escape closes the window. These do not abandon an active round.
The farm keeps running while games are open.

FARM MONEY
Bets: $10 / $25 / $50 / $100 / $250 / $500 / $1,000 / $2,500 / $5,000 / $10,000.
AI rounds deduct the stake at Start. Wins return twice the stake, ties refund
it, and losses return nothing, except the published blackjack/slots/ticket
payout rules below. Multiplayer stakes are deducted when each seat is joined;
the winner receives the combined two-player pot. Ties refund each player.
A farm must have enough money to cover bets. Two players on the same farm
share the same balance, so their head-to-head result only redistributes that
farm's reserved pot. Farm money follows ordinary FS25 saves.
Cards, opponents, results, turns, and payouts are owned by the server. Clients
only see their own cards until the hand ends. No real-world money is involved.

MULTIPLAYER TABLES
For Poker, Uno-style, Gin Rummy, Chess, and Checkers, the first player creates
a table at their current bet; the second player selects Another player and
the same game to match that bet. The round begins once both seats are filled.
One two-seat table per game is supported; different games can run at once.
Finish or forfeit an AI round before joining the same game's player table.
Only the active player can move. A turn indicator names the opponent.
After a result both players can click Rematch; new matched stakes are charged
only when both agree and both farms can afford them. Leave table frees your
seat. If a seat is already empty, leave and rejoin to create a fresh table.
Leave / forfeit during a round awards the pot to the other player. Leaving a
one-seat waiting table returns its reserved bet. A detected disconnect or
farm change forfeits an active player round. Close or Game menu keeps your seat.
Choose AI on the hub for a solo game. If you are still seated at a player
table for that game, explicitly leave it first.
Blackjack retains its earlier two-seat head-to-head table and AI dealer mode.
Both blackjack players leave after a result, then join again for another hand.

BLACKJACK
Hit, Stand, and Double Down. Fresh 52-card deck each hand, aces 1 or 11,
dealer stands on all 17s. AI blackjack pays 3:2 profit plus returned stake;
normal wins 1:1. No splits, insurance, or surrender. Head-to-head uses highest
hand under 22, with no dealer, doubling, or blackjack bonus. Bust loses.

SLOTS
Three independent equally likely symbols: CHERRY, LEMON, BELL, STAR, GOLD,
SEVEN. Three matching symbols return 2x, 3x, 4x, 6x, 10x, or 25x the stake.
An unmatched spin containing at least one cherry returns 0.5x the stake.
Other unmatched spins pay zero. All multipliers include the original stake.
Spin / Spin again buys and resolves a new spin once per click.

POKER - FIVE-CARD DRAW
Each side gets five cards from the same shuffled deck. Click cards to mark
HOLD; all other cards are replaced when you click Draw / Showdown. Each side
has one draw. In multiplayer Player 1 draws, then Player 2 draws; opponent
cards stay hidden until both have drawn. The better five-card hand wins.
High card < pair < two pair < trips < straight < flush < full house < quads
< straight flush. Full kickers break ties; A-2-3-4-5 is the low straight.
This is a fixed-stake draw round, without raises, blinds, or additional bets.

UNO-STYLE CARDS
Original artwork with two-player color-matching rules and a 108-card deck.
Match the active color or top-card value. Click your card to play it. Choose
Red/Yellow/Blue/Green before playing a wild. Skip and Reverse let you go again;
+2 and +4 force opponent draws and skip their turn. No stacking.
A +4 is playable only if your hand has no card matching the active color.
Draw one card when needed; play only that newly drawn card or click Pass.
UNO is called automatically when one card remains. First empty hand wins.
No challenge or missed-UNO penalties. Discards reshuffle when stock runs out.
Very long rounds (500 actions) or hands above 60 cards resolve as a draw.
Cards beyond ten use Prev cards / Next cards. This is an unofficial,
independently drawn two-player variant, not a Mattel product.

GIN RUMMY
Ten-card hands, a standard 52-card deck, no jokers. Draw from stock or the
face-up discard, then click one card to discard. A picked-up discard cannot
be immediately discarded again. Sets are 3 or 4 same-rank cards; runs are
3 or more consecutive cards of one suit. Aces are low; face cards count 10.
Deadwood is computed using the best non-overlapping meld arrangement.
After drawing, enable Knock and click your discard. Knocking requires 10
or less remaining deadwood. Zero is gin. On a normal knock, the opponent
can lay off onto your melds automatically. Equal or lower opponent deadwood
undercuts the knocker. Gin/undercut bonuses and deadwood points are displayed
in AI rounds; each hand is wagered individually rather than a match to 100.
The AI knocks when able. The round draws if only two stock cards remain.
Use Next cards to see the eleventh card after a draw.

CHESS
White moves first. Click a piece then a highlighted legal destination.
Pieces use P pawn / N knight / B bishop / R rook / Q queen / K king.
Includes self-check protection, castling, en passant, and pawn promotion.
Choose Queen/Rook/Bishop/Knight before moving a promoting pawn (default Queen).
Checkmate wins; stalemate draws. Basic insufficient material, threefold
repetition, and fifty-move draws are automatically detected. No chess clock
or tournament claim flow. The AI is a basic opponent, not a strong engine.

CHECKERS - AMERICAN RULES
Red moves first. Men move and capture diagonally forward. Kings move and
capture both ways. Captures are mandatory, including continued multi-jumps.
Crowning ends that move. No legal moves loses. Long non-progress games draw
(80 quiet half-moves or a 400-move safety limit).

SCRATCH-OFF TICKETS
Choose a stake and click Buy ticket. Hold LEFT MOUSE and move over the silver
coating. Rub most of each panel to reveal its number/prize; there is no
instant reveal-all button. Match the winning number for the shown prize.
Scratch all nine panels to resolve the ticket and receive any payout once.
Outcome is set at purchase and hidden until scratched. Prize returns include
stake: 0x (65%), 1x (21.5%), 2x (10%), 5x (3%), 20x (0.4%), 100x (0.1%).
The coating progress is local; an already-revealed panel stays revealed if
closed/reopened. Unfinished tickets can be forfeited to start fresh.

SESSION LIMITS
Farm balances persist through the normal save. Games, tickets, table seats,
and statistics are session-only. Restarting a server or reloading a save
abandons unfinished rounds and their already-paid stakes. Solo disconnects
abandon rounds. No automatic refunds on a server restart.

VALIDATION
Checked Lua syntax, game simulations, multiplayer server events and payouts,
card privacy, rematches, ties, forfeits, mouse scratching, UI button bounds,
and all screen layouts outside FS25. Chess passed initial-position move
counts 20 / 400 / 8902 plus checkmate/castling/en-passant cases. Actual FS25
sound playback, rendering and dedicated-server integration still need testing.
If a table stays stuck, send the client log.txt and the server log.

CHANGELOG 2.0.0.0
Game-selection hub; slots; five-card draw; Uno-style; gin rummy; chess;
American checkers; drag-to-scratch tickets; button sounds; AI/player options
for every two-player game; server-owned tables, bets, turns, cards and payouts;
multiplayer rematches, leave/disconnect handling, and concealed opponent cards.
The working blackjack implementation remains available within the hub.

V2.0.1: Fixed gin rummy rendering when the discard pile is empty after pickup. Added a colorful printed scratch-ticket design; hold left mouse and drag across silver panels.

V2.0.2: Circular scratch spots and matching scratch hit areas. Original short victory and loss melodies play once at each new game-suite result; draws are silent.

V2.0.3: Illustrated slot symbols and scrolling reels that stop one at a time. Result sounds wait until the reels stop. Wagering and payouts remain server controlled.
Reel-spinning audio loops while the reels move; each reel makes a stop sound.

V2.0.4: Card-slide sound for deal/draw/discard/play changes in blackjack, poker, Uno-style and gin rummy. Includes spinning illustrated slot reels and reel noises from v2.0.3.

V2.0.5: Gin rummy drag-and-drop. Hold left mouse on a card to move it; release within your hand to reorder, or onto DISCARD to discard on your turn. Drag STOCK/DISCARD into the hand to draw (click-to-draw remains available). All 11 cards fit on screen. Hand arrangement is local; server validates draws/discards.

V2.0.6: Reel audio stops immediately on game-menu navigation, changing games, closing the casino, or unloading the map. Explicit zero-delay/zero-fade stops and a finite playback limit prevent runaway looping.

V2.0.7: Choose Winning Number or Match Three scratch tickets. Match Three wins when three circles show the same number; each repeats the same associated prize. Available prizes are 1x, 2x, 5x, 20x or 100x the ticket price. All nine circles must be scratched before one server-controlled payout. Change types between tickets. Both tickets retain circular hold-and-drag scratching.

V2.0.8: Both scratch-ticket headings now read OHIO LOTTERY.

V2.0.9: Separate circular PRIZE BOOSTER spot on both tickets. Scratch all nine prize spots plus booster to settle. 3X/5X multiply the winning base prize; 1X leaves it unchanged. Bonus-bearing tickets are winners. Frequencies: 3X 15875/5,000,000; 5X 18733/5,000,000; mutually exclusive. Derived from the w/3X and w/5X prize-structure rows of Ohio Lottery Peppermint Payout Multiplier game 744 (2022 print run). Remaining gameplay/base payouts are custom, not a full reproduction of that real ticket.
Source: https://codes.ohio.gov/assets/laws/administrative-code/pdfs/3770/1/9/3770%241-9-744_FF_N_APP1_20220714_1326.pdf
