Skip to content
  • Vladimir Zhukov's avatar
    Add an interactive tutorial for new players · 8d016896
    Vladimir Zhukov authored
    
    
    The main menu gets a "Обучение" button before "История игр". It starts a
    five-turn scripted match against a single bot ("Семинарист") without a
    turn timer. The dean walks the player through hiring and playing cards,
    hero damage, rolling and freezing the tavern, a triple with its discover
    reward, upgrading the course, a targeted battlecry and selling; the last
    turn is free. The required button or row is highlighted and an animated
    arrow shows where to drag a card; combats get a short explanation.
    
    The script (shops per turn, roll results, discover options, opponent
    boards and step texts) lives in src/data/tutorial.ts. The server runs a
    regular match in the new 'tutorial' mode and accepts only the action the
    current step expects; the client checks the same rule up front. The step
    is part of the match snapshot, so reconnects and server restarts resume
    the tutorial where it was left.
    
    Tutorial matches stay out of game history and card statistics: no
    offers, combats or results are recorded, only tutorial_* events that
    show where players drop off. A server test plays the tutorial many times
    with random combats and choices and checks that following the hints
    wins every fight.
    
    Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
    8d016896