Trick-Taking Refactoring

Community

Consolidate trick-taking logic into a safe base.

Authorkerem-ersoz
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Extracting and consolidating duplicated trick-taking logic (shared state, dealing, play flow) into a reusable base class to reduce maintenance across Hearts, King, and Spades.

Core Features & Use Cases

  • BaseCardGame extraction centralizes common state management, dealing, and trick progression.
  • Game-specific boundaries keep Hearts, King, and Spades logic isolated while sharing core functionality.
  • Incremental safety rules enforce testable, reversible refactors and serialization compatibility.

Quick Start

Begin by introducing a BaseCardGame that encapsulates common behavior, then refactor one game at a time, validating serialization and tests after each step.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Trick-Taking Refactoring
Download link: https://github.com/kerem-ersoz/gonul/archive/main.zip#trick-taking-refactoring

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.