Files
unhappychoice--gittype/docs/playing-guide.md
T
wehub-resource-sync 8c89588461
CI / Coverage (push) Waiting to run
CI / Format (push) Waiting to run
CI / Clippy (push) Waiting to run
CI / Test (push) Waiting to run
CI / Nix Build (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:16:47 +08:00

2.2 KiB
Raw Blame History

Playing GitType

Scoring System

Score Calculation Formula

Base Score = CPM × (Accuracy / 100) × 10

Metrics Explained

  • CPM (Characters Per Minute): Total characters typed / minutes
  • WPM (Words Per Minute): CPM / 5 (average word length)
  • Accuracy: (Total chars - Mistakes) / Total chars × 100%

Bonuses & Penalties

  • Consistency Bonus: Up to 70% extra for high accuracy
  • Time Bonus: Extra points for fast completion
  • Mistake Penalty: -5 points per error
Final Score = (Base + Consistency + Time - Penalties) × 2 + 100

Game Modes

Standard Mode

Type code from popular repositories with different difficulty levels:

  • Easy: Simple code constructs
  • Normal: Balanced complexity
  • Hard: Complex patterns and syntax
  • Wild: Challenging edge cases
  • Zen: Relaxed, no time pressure

Challenge Flow

  1. Title Screen: Welcome and instructions
  2. Loading Screen: Extracting code chunks from repository
  3. Countdown: 3-2-1 start timer
  4. Typing Challenge: Type the displayed code
  5. Results: View performance metrics and score
  6. Next Challenge: Continue to next stage

Code Challenge Types

GitType extracts real code constructs from repositories:

  • Functions, methods, and procedures
  • Classes, structs, and interfaces
  • Enums, traits, and type definitions
  • Variables, constants, and modules
  • React components and namespaces
  • Control flow (loops, conditionals)

Rank System

Rank Tiers

  • Beginner: Fresh developers learning the basics
  • Intermediate: Solid developers with growing skills
  • Advanced: Senior developers mastering their craft
  • Expert: Elite developers becoming legendary
  • Legendary: Mythical entities beyond comprehension

Rank Progression

Progress through ranks by achieving higher scores. Each rank requires a minimum score threshold. The highest ranks remain mysterious until achieved!

Help System

Press I or ? from the title screen to access the in-game help system with detailed information about:

  • CLI usage and commands
  • Scoring system details
  • Complete rank listings
  • Game controls and tips
  • About and community information