Skip to content

Hack23/blacktrigram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7,748 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Hack23 AB Logo โ€” Korean martial arts simulator publisher

๐Ÿฅ‹ Black Trigram (ํ‘๊ด˜)

Korean Martial Arts Combat Simulator โ€” Eight Trigrams ยท 70 Vital Points ยท 51 Authentic Techniques
์–ด๋‘ ์˜ ๋ฌด์˜ˆ๋กœ ์™„๋ฒฝํ•œ ์ผ๊ฒฉ์„ ์ถ”๊ตฌํ•˜๋ผ โ€” "Master the dark arts through the pursuit of the perfect strike"

Play Black Trigram live at blacktrigram.com TypeDoc API documentation for Black Trigram Black Trigram on npm Ask DeepWiki about Black Trigram

Black Trigram (ํ‘๊ด˜) game logo โ€” Korean martial arts
blacktrigram.com website status
npm package version 0.7.32
npm monthly downloads
Latest GitHub release
Node.js 25 or later required

๐Ÿฅ‹ Korean martial arts ยท โ˜ฏ๏ธ Eight Trigrams (ํŒ”๊ด˜) ยท ๐ŸŽฏ 70 vital points (๊ธ‰์†Œ) ยท โš”๏ธ 51 techniques ยท ๐ŸŽฎ Three.js / React Three Fiber ยท ๐Ÿ“ฑ 60fps desktop ยท 55fps+ mobile

Black Trigram (ํ‘๊ด˜) is a production-ready 3D precision combat simulator that turns authentic Korean martial arts โ€” Hapkido (ํ•ฉ๊ธฐ๋„), Taekwondo (ํƒœ๊ถŒ๋„), Taekkyeon (ํƒ๊ฒฌ), Kuk Sool Won, Tang Soo Do, Hwa Rang Do, Ssireum, Subak, Yudo, and Gongkwon Yusul โ€” into a typed, deterministic, browser-native combat experience. Eight Iย Ching trigram stances drive a 70-point anatomical targeting system across 5 distinct fighter archetypes, with skeletal animation (28 bones ยท 7 hand poses ยท 4 grappling states), counter-attack AI with limb-exposure detection, and a complete 13/13 combat-realism stack covering pain, consciousness, breathing, balance, trauma visualization, and bone-impact audio.

Built on React 19, Three.js 0.184, @react-three/fiber 9, @react-three/drei 10, TypeScript 6.0.3, and Vite 8. Frontend-only architecture deployed on AWS CloudFront + S3 (multi-region) with Route 53 health-checked failover to GitHub Pages โ€” zero backend, zero PII, WCAG 2.1 AA accessible, GDPR-clean, and aligned with the full Hack23 ISMS, ISO 27001:2022, NIST CSF 2.0, CIS Controls v8.1, EU CRA, and NIS2.

GitHub repository Hack23/blacktrigram Live game at blacktrigram.com TypeDoc API reference Hack23 ISMS-PUBLIC repository

OpenSSF Scorecard OpenSSF Best Practices SLSA 3 Scorecard supply-chain security License FOSSA Status CLA assistant

CodeQL Test & Report Dependency Review Lighthouse Performance ZAP Scan Accessibility Test Release Deploy S3 Audit Assets Screenshot Analysis

Quality Gate Status Security Rating Maintainability Rating Reliability Rating Lines of Code Coverage

API Documentation Performance Budget Lighthouse 90+ Average resolution time Open issues

Hack23 ISMS ISO 27001:2022 NIST CSF 2.0 CIS Controls v8.1 GDPR NIS2 EU CRA


๐ŸŽฏ Why This Exists

"์–ด๋‘  ์†์—์„œ ์™„๋ฒฝํ•œ ์ผ๊ฒฉ์„ ์ฐพ์•„๋ผ" โ€” "In darkness, seek the perfect strike."

Authentic Korean martial arts deserve more than a flashy combo system. Black Trigram (ํ‘๊ด˜) is the cultural-tech sister project to Riksdagsmonitor and EU Parliament Monitor in the Hack23 portfolio: where those projects apply structured intelligence tradecraft to democratic transparency, Black Trigram applies the same engineering rigor to combat simulation โ€” turning the I Ching's Eight Trigrams (โ˜ฐโ˜ฑโ˜ฒโ˜ณโ˜ดโ˜ตโ˜ถโ˜ท), 70 anatomically-precise vital points (๊ธ‰์†Œ) across 4 body regions and 14 TCM meridians, and 51 traditional techniques into a typed, testable, deterministic, accessible, browser-first Korean martial arts simulator.

It is a complete 13/13 combat-realism platform โ€” body-part health, vital-point targeting, enhanced anatomy, visual feedback, pain response, consciousness levels, breathing disruption, trauma visualization, balance/vulnerability, combat-readiness HUD, injury-based movement, bone-impact audio, and counter-attack AI with limb-exposure detection โ€” running at 60fps on desktop and 55fps+ on mobile, validated across 518 tests (372 unit + 146 new), with 75%+ coverage, WCAG 2.1 AA accessibility, and full OWASP / OSSF / SLSA 3 supply-chain hardening.

Pillar What it means in this project
๐Ÿฅ‹ Cultural Authenticity Hangul + Revised Romanization + meaning for every term. 51 techniques sourced from Hapkido, Taekwondo, Taekkyeon, Kuk Sool Won, Tang Soo Do, Hwa Rang Do, Gumdo, Ssireum, Subak, Yudo, Gongkwon Yusul. 127 medical references underpin the 70 vital points.
๐ŸŽฏ Anatomical Precision 70/70 vital points, 4 body regions, 5 severity levels, 14 TCM meridians, 28-bone skeletal animation, 7 hand poses, 4 grappling states. Counter-attack AI with limb-exposure detection.
โš™๏ธ Engineering Rigor TypeScript strict mode, React 19, Three.js 0.184, R3F 9, Drei 10, Vite 8 โ€” 60fps desktop, 55fps+ mobile, 75%+ test coverage, 518 tests, deterministic combat math.
๐Ÿ” Radical Transparency Frontend-only ยท zero backend ยท zero PII ยท public ISMS ยท CodeQL ยท ZAP DAST ยท Lighthouse ยท OSSF Scorecard ยท SLSA 3 attestations ยท CycloneDX SBOM.

๐Ÿ“Š Production-readiness snapshot (v0.7.32) โ€” see game-status.md and ARCHITECTURE.md:

Metric Value Source
Product version 0.7.32 package.json
Overall quality 9.4 / 10 โ€” Production-Ready game-status.md
Combat realism systems 13 / 13 (100%) game-status.md
Vital points 70 / 70 (4 regions ยท 5 severity ยท 14 TCM meridians ยท 127 medical refs) game-status.md
Trigram stances 8 / 8 game-status.md
Player archetypes 5 / 5 game-status.md
Techniques 51 across 4 categories game-status.md
Skeletal animation 28 bones ยท 7 hand poses ยท 4 grappling states game-status.md
Tests passing 518 (372 + 146 new) game-status.md
Test coverage ~75% (target 80%+) game-status.md
Performance 60fps desktop ยท 55fps+ mobile (validated) performance-testing.md
Accessibility WCAG 2.1 AA accessibility-test.yml
Last architecture review 2026-04-21, Architecture v2.1 ARCHITECTURE.md

๐ŸŒ Explore the Platform

The published game is the audience-facing companion to this open-source TypeScript / React Three Fiber package. Bookmark these entry points:

Play Black Trigram ๐ŸŽฎ Live Game โ€” blacktrigram.com
The production WebGL build. Eight Trigram stances, 70 vital points, 5 fighter archetypes, full 3D skeletal combat. Hardware-accelerated Three.js ยท 60fps desktop, 55fps+ mobile ยท WCAG 2.1 AA accessibility ยท keyboard, mouse, touch, and gesture controls. Hosted from AWS CloudFront + S3 (multi-region) with Route 53 health-checked DNS failover to GitHub Pages.
API documentation ๐Ÿ“˜ TypeDoc API Reference
Strict TypeDoc output covering every public type, interface, hook, component, and system: Eight Trigram philosophy, vital-point system (all 70 points), combat math (damage / accuracy / counter-attack), 5 archetypes, audio engine, and Koreanโ€“English bilingual JSDoc. Strict notDocumented:true validation drives 100% public-API coverage.
Security architecture ๐Ÿ›ก๏ธ Security Architecture
Trust boundaries, browser-only sandbox model, CSP, SRI, no-PII data flows, cryptography choices, supply-chain controls (OSSF Scorecard, SLSA 3, SBOM, Dependabot, CodeQL, ZAP). Aligned with Hack23 Information Security Policy and Secure Development Policy.
STRIDE threat model ๐ŸŽฏ STRIDE Threat Model
STRIDE-per-trust-boundary analysis with MITRE ATT&CK mapping, attack trees for the most likely abuse paths (e.g. dependency injection, supply-chain compromise, XSS via user-uploaded content โ€” none accepted), and explicit residual-risk acceptance. Aligned with Hack23 Threat Modeling Policy.
Black Trigram roadmap to v1.0 ๐Ÿ—บ๏ธ Roadmap to v1.0 (Q3 2026)
Production-Ready release plan. Combat realism complete (13/13). Remaining: training-mode polish, Korean localization to 100%, mobile performance budget tightening, v1.0.0-rc validation. See also VISION_2026_2034.md for the 8-year strategic plan and FUTURE_ARCHITECTURE.md for the post-v1.0 architecture.
Game status report ๐Ÿ“Š Comprehensive Status Report
Source-of-truth metrics: 13/13 combat realism, 70/70 vital points, 28-bone skeletal animation, 51 techniques, 518 tests, 75%+ coverage, 60fps / 55fps+ mobile. Updated 2026-04-21 alongside ARCHITECTURE.md and THREAT_MODEL.md.
npm package blacktrigram ๐Ÿ“ฆ npm: blacktrigram
Reusable game systems, combat mechanics, animation framework, and Korean martial arts data, published as ESM with strict TypeScript types. Subpath exports: blacktrigram/systems, /types, /audio, /utils, /components, /hooks, /data. Each release ships with an SLSA 3 provenance attestation and a CycloneDX SBOM.
DeepWiki for Black Trigram ๐Ÿค– Ask DeepWiki
AI-indexed knowledge base over the entire Black Trigram repository. Best for natural-language deep-dives into combat math, archetypes, vital-point algorithms, animation rigging, or Three.js performance choices.

โšก Combat Pipeline โ€” at a Glance

The combat loop is fully deterministic, frame-accurate, and side-effect-isolated. Player input is normalised, fed through the active trigram stance, validated against vital-point geometry, scored for damage, and rendered in Three.js โ€” all within a single 16.6 ms frame budget.

flowchart LR
    A[๐ŸŽฎ Input<br/>Keyboard ยท Touch ยท Gesture] --> B[โ˜ฏ๏ธ Trigram Stance<br/>๊ฑดํƒœ๋ฆฌ์ง„์†๊ฐ๊ฐ„๊ณค]
    B --> C[๐Ÿฆด Skeletal Pose<br/>28 bones ยท 7 hand poses]
    C --> D[๐ŸŽฏ Vital-Point Targeter<br/>70 points ยท 4 regions ยท 14 meridians]
    D --> E[โš”๏ธ Damage Calculator<br/>severity ยท accuracy ยท archetype bonus]
    E --> F[๐Ÿฉธ Body-Part Health<br/>pain ยท consciousness ยท breathing ยท balance]
    F --> G[๐Ÿค– Counter-Attack AI<br/>limb-exposure detection]
    G --> H[๐ŸŽจ Three.js Render<br/>60fps ยท trauma ยท particles ยท shaders]
    F --> I[๐Ÿ”Š Audio Engine<br/>bone impact ยท breath ยท ๊ตญ์•…]
    H --> J[โ™ฟ WCAG 2.1 AA HUD<br/>combat readiness ยท haptics]
    I --> J

    classDef korean fill:#000000,stroke:#FFD700,color:#FFD700,stroke-width:2px
    classDef tech fill:#001a1a,stroke:#00FFFF,color:#00FFFF,stroke-width:2px
    classDef combat fill:#1a0000,stroke:#FF6B6B,color:#FF6B6B,stroke-width:2px
    class A,J tech
    class B,C,D korean
    class E,F,G,H,I combat
Loading

See COMBAT_ARCHITECTURE.md for the full pipeline (3,300+ lines), FLOWCHART.md for business / combat process flows, and STATEDIAGRAM.md for the complete state machine.


๐Ÿฅ‹ Combat Disciplines

Black Trigram is a realistic Korean martial arts simulator that teaches authentic vital-point combat through precise anatomical targeting. Master traditional techniques via modern 3D combat mechanics across 5 distinct fighter archetypes.

๐ŸŽฏ ์ •๊ฒฉ์ž
Jeonggyeokja
Precision Striker
Every strike targets anatomical weak points

โš”๏ธ ๋น„์ˆ˜
Bisu
Lethal Technique
Decisive unarmed combat methods

๐Ÿฅท ์•”์‚ด์ž
Amsalja
Shadow Assassin
Silent takedown techniques

๐Ÿ’€ ๊ธ‰์†Œ๊ฒฉ
Geupsogyeok
Vital Point Strike
70 anatomical targets for incapacitation


๐ŸŽญ Player Archetypes

Master combat through 5 distinct fighting philosophies โ€” each with unique vital-point bonuses, archetype-specific techniques, and signature visual effects:

Archetype Korean / English Combat Philosophy Special Focus
๐Ÿฏ ๋ฌด์‚ฌ (Musa) ยท Traditional Warrior Honor through strength Military discipline, overwhelming force
๐Ÿฅท ์•”์‚ด์ž (Amsalja) ยท Shadow Assassin Efficiency through invisibility Stealth approaches, instant takedowns
๐Ÿ’ป ํ•ด์ปค (Hacker) ยท Cyber Warrior Information as power Environmental manipulation, tech-assisted strikes
๐Ÿ•ต๏ธ ์ •๋ณด์š”์› (Jeongbo Yowon) ยท Intelligence Operative Knowledge through observation Psychological manipulation, precise timing
โšก ์กฐ์งํญ๋ ฅ๋ฐฐ (Jojik Pokryeokbae) ยท Organized Crime Survival through ruthlessness Dirty fighting, improvised weapons

โ˜ฏ๏ธ Eight Trigrams (ํŒ”๊ด˜) โ€” Combat Stance System

Master 70 authentic vital points (๊ธ‰์†Œ) distributed across the I Ching's eight trigrams. Each stance shapes the active hitbox geometry, technique pool, defensive posture, and audio profile:

Trigram Korean / Meaning Combat Focus Combat Effects
โ˜ฐ ๊ฑด (Geon) โ€” Heaven Bone-striking force Fractures, structural damage
โ˜ฑ ํƒœ (Tae) โ€” Lake Joint manipulation Dislocations, mobility loss
โ˜ฒ ๋ฆฌ (Li) โ€” Fire Precise nerve strikes Temporary paralysis, numbness
โ˜ณ ์ง„ (Jin) โ€” Thunder Stunning techniques Disorientation, knockouts
โ˜ด ์† (Son) โ€” Wind Continuous pressure Gradual incapacitation
โ˜ต ๊ฐ (Gam) โ€” Water Blood-flow restriction Circulation disruption
โ˜ถ ๊ฐ„ (Gan) โ€” Mountain Defensive counters Counter-attacks, blocks
โ˜ท ๊ณค (Gon) โ€” Earth Ground techniques Throws, takedowns

๐Ÿ’ช Realistic Body Mechanics (13/13 systems ยท 100% complete)

  • ๐Ÿฉธ Authentic Trauma โ€” Realistic injury visualization, blood, bruising progression
  • ๐Ÿฆด Bone-Impact Audio โ€” Genuine bone-contact and fracture sounds
  • ๐Ÿซ Breathing Disruption โ€” Respiratory targeting affects stamina and accuracy
  • โš–๏ธ Balance System โ€” Stance- and momentum-physics-driven vulnerability windows
  • ๐Ÿง  Consciousness Levels โ€” 4-level progressive awareness impairment
  • ๐Ÿ˜ต Pain Response โ€” Physiological pain accumulation affecting performance
  • ๐Ÿฆต Injury-Based Movement โ€” Damage to limbs constrains mobility and stance access
  • ๐ŸŽฏ Vital-Point Targeter โ€” 70 points ยท 4 regions ยท 5 severity tiers ยท 14 TCM meridians
  • ๐Ÿค– Counter-Attack AI โ€” Limb-exposure detection triggers archetype-aware ripostes

๐Ÿ“ธ Concept

Cyberpunk team dynamics โ€” Black Trigram fighter selection screen Player archetypes explained โ€” Musa, Amsalja, Hacker, Jeongbo Yowon, Jojik Pokryeokbae Player archetypes overview with Korean martial arts philosophy

๐Ÿš€ Technical Stack

Built for combat realism, 60fps performance, and production-grade engineering:

๐ŸŽฎ Rendering Engine

Three.js 0.184 React Three Fiber 9 @react-three/drei 10 React 19 TypeScript 6.0

โšก Build & Performance

Vite 8 Node 25+ WebGL 2 Web Audio 60fps Desktop 55fps+ Mobile

๐Ÿงช Quality & Testing

Vitest Cypress 518 Tests Coverage 75%+ WCAG 2.1 AA

๐ŸŽจ 3D Visual Effects

3D Models Skeletal Particles Shaders

๐ŸŽฏ Core Combat Components

  • VitalPointTargeter โ€” Interactive 70-point anatomical targeting with polygon-based zone detection
  • CombatTracker โ€” Real-time damage, pain, consciousness, breathing, and balance monitoring
  • TechniqueCalculator โ€” Deterministic damage / accuracy / counter-attack math (51 techniques)
  • CombatAnalyzer โ€” Post-match technique-effectiveness analysis
  • ThreeJSRenderer โ€” Hardware-accelerated 3D combat visualization with skeletal animation (28 bones)
  • CounterAttackAI โ€” Archetype-aware riposte system with limb-exposure detection

๐ŸŽฎ Combat Controls

๐Ÿ“– Full reference: CONTROLS.md โ€” single source of truth for all keyboard, mouse, touch, gesture, and haptic controls.

โŒจ๏ธ Desktop (currently implemented)

  • ๐Ÿƒ Movement โ€” WASD / Arrow Keys โ€” 8-directional tactical positioning
  • โ˜ฏ๏ธ Stances โ€” 1โ€“8 (Eight Trigrams)
    • 1 โ˜ฐ Geon (Heaven) โ€” bone-striking force
    • 2 โ˜ฑ Tae (Lake) โ€” joint manipulation
    • 3 โ˜ฒ Li (Fire) โ€” precise nerve strikes
    • 4 โ˜ณ Jin (Thunder) โ€” stunning techniques
    • 5 โ˜ด Son (Wind) โ€” continuous pressure
    • 6 โ˜ต Gam (Water) โ€” adaptive counters
    • 7 โ˜ถ Gan (Mountain) โ€” defensive mastery
    • 8 โ˜ท Gon (Earth) โ€” ground control
  • ๐Ÿ›ก๏ธ Guard โ€” B โ€” defensive positioning and blocks
  • โšก Attack โ€” Space โ€” execute current stance technique
  • ๐ŸŽฏ Vital Strike โ€” V โ€” toggle 70-point anatomical targeting overlay
  • โธ๏ธ Pause โ€” ESC / M โ€” pause menu / return to intro

๐Ÿ“ฑ Mobile Touch (auto-displayed on screens < 768px)

  • ๐Ÿ•น๏ธ Virtual D-Pad (bottom-left, 140ร—140 px, 48 px buttons exceeding the 44 px iOS guideline) โ€” 8-directional movement with Korean arrows (โ†‘ โ†— โ†’ โ†˜ โ†“ โ†™ โ† โ†–)
  • โšก Action Buttons (bottom-right) โ€” 80ร—80 px gold Attack โšก, 70ร—70 px blue Block ๐Ÿ›ก๏ธ
  • โ˜ฏ๏ธ Stance Wheel (bottom-center, 200 px diameter) โ€” 8 trigrams with hangul: ๊ฑด ํƒœ ๋ฆฌ ์ง„ ์† ๊ฐ ๊ฐ„ ๊ณค
  • All controls are safe-area aware (34 px bottom inset for notched devices)

๐Ÿ‘† Gesture & Haptic Feedback

  • Swipe โ†’ advance ยท โ† retreat ยท โ†‘ high attack ยท โ†“ low attack ยท two-finger tap toggles vital-point mode
  • Haptics: 10 ms light (movement / stance), 50 ms medium (attack), 100 ms heavy (vital-point hits)

๐ŸŽญ Training Modules

๐ŸŽฏ ํ•ด๋ถ€ํ•™ ์—ฐ๊ตฌ (Anatomical Study)

  • ๐Ÿ“š ๊ธ‰์†Œํ•™์Šต โ€” 70 anatomical target points
  • ๐ŸŽฏ ์ •๋ฐ€ํƒ€๊ฒฉ โ€” accurate targeting techniques
  • โšซ ๊ณ ๊ธ‰๊ธฐ๋ฒ• โ€” professional combat methods
  • ๐Ÿฅ‹ ์‹ค์ „์‘์šฉ โ€” combat-effectiveness training

โš”๏ธ ๋ฌด์ˆ  ๊ธฐ๋ฒ• (Martial Techniques)

  • ๐Ÿฅ‹ ๊ธฐ๋ณธ๊ธฐ โ€” fundamentals: striking and positioning
  • ๐Ÿ”ข ํŒ”๊ด˜์ˆ  โ€” Eight Trigram Arts: traditional Korean combat philosophy
  • ๐Ÿ”— ์—ฐ๊ณ„๊ธฐ๋ฒ• โ€” combination techniques: flowing technique sequences
  • ๐ŸŽฏ ์ •๋ฐ€์ˆ  โ€” precision arts: exact targeting and timing

๐ŸฅŠ ์‹ค์ „ ํ›ˆ๋ จ (Combat Training)

  • ๐Ÿ‘ค ์ผ๋Œ€์ผ โ€” single-opponent simulation
  • ๐Ÿข ํ™˜๊ฒฝ์ „ํˆฌ โ€” environmental combat (using surroundings tactically)
  • ๐Ÿง˜ ์ •์‹ ์ˆ˜์–‘ โ€” mental cultivation: psychological combat preparation
  • ๐Ÿƒ ์—ฐ์†๋Œ€์ „ โ€” continuous combat: multiple-opponent scenarios

๐ŸŽญ ์›ํ˜• ํŠนํ™” (Archetype Mastery)

  • ๐Ÿฏ ๋ฌด์‚ฌ๋„ โ€” traditional warrior discipline ยท ๐Ÿฅท ์•”์˜์ˆ  โ€” shadow arts ยท ๐Ÿ’ป ์‚ฌ์ด๋ฒ„์ „ โ€” cyber warfare ยท ๐Ÿ•ต๏ธ ์ •๋ณด์ „ โ€” intelligence warfare ยท โšก ๊ฑฐ๋ฆฌ์ˆ  โ€” street arts

๐Ÿ“ Architecture & Development Insights

In-depth technical and cultural analysis from the Hack23 development team.

โญ Simon Moon โ€” Architecture Chronicles

System Architect ยท Pattern Recognition Expert ยท Philosopher-Engineer
View Agent Profile

Simon Moon reveals the hidden structures and sacred geometry in Black Trigram's architecture through the Law of Fives and numerological patterns.

๐Ÿฅ‹ Black Trigram Architecture

Five Fighters, Sacred Geometry

Five fighter archetypes discovered through combat-domain analysis. Cultural authenticity meeting mechanical depth โ€” with zero backend architecture.

โš”๏ธ Black Trigram Combat System

70 Vital Points & Physics

Traditional Korean martial arts mapped to 70 biomechanical vital points. Five collision systems with anatomical precision and respect for cultural tradition.

๐Ÿฅฝ Black Trigram Future Vision

VR Martial Arts & Immersive Combat

Five-year evolution roadmap from immersive 3D fighter to VR martial arts training platform. Korean martial arts preservation through immersive technology.

๐Ÿ” George Dorn โ€” Code Analysis

Developer ยท Repository Inspector ยท Code Archaeologist
View Agent Profile

George Dorn provides repository deep-dives based on actual code inspection, not assumptions. Each analysis includes cloned repositories, file counts, dependency reviews, and verified metrics.

๐Ÿ’ป Black Trigram Code Analysis

Repository Deep-Dive

Stack: TypeScript 6.0.3 ยท React 19 ยท Three.js 0.184 ยท Vite 8
Metrics: 132+ TypeScript files ยท 70 vital points ยท 5 archetypes ยท 28-bone skeletal animation ยท 51 techniques

Examined package.json dependencies, explored src/ structure, verified combat-system implementation, and reviewed AI integrations.

๐ŸŽฎ Black Trigram Implementation Reality

Combat Code: TypeScript vs. Martial Arts Physics

George's technical commentary on collision-detection challenges, performance optimization for 60fps combat, and Easter eggs hidden throughout the codebase.

Easter Eggs: land exactly 23 hits โ†’ FNORD victory screen ยท Konami code unlocks "Hagbard Mode" ยท health at 23% โ†’ UI pulses urgently.

๐Ÿ“š Full Hack23 Blog โ€” 50+ posts on cybersecurity, ISMS policy, and software architecture through radical transparency.

"Code is reality made computational. If it doesn't work, nothing else matters." โ€” George Dorn


๐Ÿฉธ Combat Realism Systems โ€” 13 / 13 Complete (100%)

System Status Notes
Body-Part Health โœ… 8-part damage tracking
Vital-Point Targeting โœ… 70 authentic Korean vital points
Enhanced Anatomy โœ… Polygon-based zone detection
Visual Feedback โœ… Damage numbers, hit effects, combos
Pain Response โœ… Realistic pain accumulation (production-tested)
Consciousness Levels โœ… 4-level awareness system
Breathing Disruption โœ… Respiratory targeting affects stamina/accuracy
Trauma Visualization โœ… Injury rendering, bruising progression
Balance / Vulnerability โœ… Stance-based weakness windows
Combat-Readiness HUD โœ… Real-time multi-system status display
Injury-Based Movement โœ… Damage constrains mobility and stance access
Bone-Impact Audio โœ… Bone-contact and fracture sounds
Counter-Attack AI โœ… Limb-exposure detection ยท archetype-aware ripostes

๐Ÿ“Š Detailed Status Report โ†’ ยท ๐Ÿ—บ๏ธ v1.0 Roadmap โ†’ ยท โš”๏ธ Combat Architecture โ†’


๐Ÿš€ Quick Start

๐Ÿ“‹ Prerequisites

  • Node.js 25+ โ€” download
  • npm 11+ (bundled with Node 25)
  • Modern browser with WebGL 2.0 support

๐ŸŒ Play Now

๐ŸŽฎ Play live โ†’ blacktrigram.com ยท ๐ŸŽฎ GitHub Pages mirror โ†’ hack23.github.io/blacktrigram

๐Ÿ”ง Local Development

# Clone
git clone https://github.com/Hack23/blacktrigram.git
cd blacktrigram

# Install (requires Node โ‰ฅ 25)
npm install

# Start the dojang
npm run dev

# Production build
npm run build

# Run tests
npm run test           # Vitest unit
npm run test:systems   # combat-system focused
npm run test:e2e       # Cypress E2E

# Generate API docs (TypeDoc)
npm run docs

๐Ÿ“ฆ Use as a Library

npm install blacktrigram
// ESM with strict TypeScript types
import { CombatSystem, VitalPoints } from 'blacktrigram/systems';
import type { TrigramStance, PlayerArchetype } from 'blacktrigram/types';

๐Ÿ” Security, Compliance & ISMS Alignment

At Hack23 AB we believe true security comes through transparency and demonstrable practices. Black Trigram is governed by the public ISMS-PUBLIC framework, aligned with ISO 27001:2022, NIST CSF 2.0, CIS Controls v8.1, EU CRA, NIS2, and GDPR.

๐Ÿ›ก๏ธ Supply-Chain Security (SLSA 3)

๐Ÿ“œ Hack23 ISMS Policy Anchors

Policy Alignment
Information Security Policy Master security governance
Secure Development Policy SDLC, code review, testing, threat modeling
Open Source Policy License compliance, OSSF Scorecard, SBOM
Vulnerability Management CodeQL, ZAP, Dependabot, SLA
Cryptography Policy TLS 1.3, SRI, no client secrets
Threat Modeling STRIDE per trust boundary
Access Control Policy GitHub branch protection, signed commits
Network Security Policy CDN, WAF, CSP, HSTS, SRI
Backup & Recovery Policy Multi-region S3 + GitHub Pages DR
Incident Response Plan Security disclosure, runbooks
Risk Register Project risks tracked centrally
Compliance Checklist ISO 27001 ยท NIST CSF ยท CIS v8.1 mapping
Security Metrics KPIs and dashboards
AI Policy Copilot governance, EU AI Act, NIST AI RMF
Data Classification Policy Public ยท no PII
ISMS Transparency Plan Public-disclosure strategy
CLASSIFICATION.md Business-impact analysis

๐Ÿ“Š Full project โ†” ISMS mapping: ISMS_REFERENCE_MAPPING.md

"Our commitment to transparency extends to our security practices โ€” true security comes from robust processes, continuous improvement, and a culture where security considerations are integrated into every business decision."
โ€” James Pether Sรถrling, CEO/Founder, Hack23 AB

๐Ÿ—๏ธ Hack23 Portfolio โ€” Sister Projects

Black Trigram is part of the Hack23 portfolio โ€” a connected suite of open-source platforms applying transparent engineering and structured-intelligence tradecraft to high-stakes domains:

Project Description
๐Ÿฅ‹ Black Trigram This repo โ€” Korean martial arts simulator (Three.js / R3F / TypeScript)
๐Ÿ•ต๏ธ Citizen Intelligence Agency Swedish political-intelligence and accountability platform
๐Ÿ“Š CIA Compliance Manager CIA-triad compliance dashboard with business-impact mapping
๐Ÿ—ณ๏ธ Riksdagsmonitor Swedish Parliament monitor โ€” autonomous AI newsroom in 14 languages
๐Ÿ›๏ธ EU Parliament Monitor European Parliament political-intelligence platform
๐Ÿ›ฐ๏ธ European Parliament MCP Server TypeScript MCP server exposing EP open data to LLMs
๐ŸŒ Hack23 Homepage Hack23 AB corporate site โ€” radical transparency in practice
๐Ÿ” ISMS-PUBLIC Public Information Security Management System framework

๐ŸŒ Hack23 AB โ€” hack23.com ยท Blog ยท Security Posture


๐Ÿ“š Documentation Map

๐Ÿ—บ๏ธ Planning & Status

๐Ÿ›๏ธ Architecture (C4 Model)

๐Ÿ” Security & Compliance

๐Ÿ› ๏ธ Development, Testing & Assets

๐Ÿค– GitHub Copilot Custom Agents


๐Ÿฅ‹ Project Classification

๐ŸŽฏ Project Type

Project Type Process Type

๐Ÿ”’ Security Classification

Confidentiality Integrity Availability

โฑ๏ธ Business Continuity

RTO RPO

The frontend is statically deployed to AWS CloudFront + S3 in multiple AWS regions with Route 53 health-checked failover to GitHub Pages as disaster-recovery โ€” supporting the RTO/RPO commitments above with no backend dependencies. See BCPPlan.md and SECURITY_ARCHITECTURE.md.

๐Ÿ’ฐ Business Impact Analysis Matrix

Impact Financial Operational Reputational Regulatory
๐Ÿ”’ Confidentiality Negligible Negligible Low Negligible
โœ… Integrity Negligible Moderate Moderate Negligible
โฑ๏ธ Availability Negligible Low Low Negligible

๐Ÿ›ก๏ธ Security Investment & Strategic Position

ROI Risk Mitigation Market Position Customer Trust


๐Ÿค Contributing

We welcome contributions in code, documentation, Korean cultural review, accessibility audits, and security research.

  • ๐Ÿ“‹ CONTRIBUTING.md โ€” contribution workflow
  • ๐Ÿค CODE_OF_CONDUCT.md โ€” community standards
  • ๐Ÿ”’ SECURITY.md โ€” responsible disclosure (use the dedicated channel; do not file public issues)
  • โœ๏ธ All commits must be signed; first-time contributors sign the CLA

๐Ÿ“œ License

Apache License 2.0 โ€” see LICENSE.

FOSSA Status


๐ŸŒŸ Ready to Master Korean Martial Arts?

๐ŸŽฎ Play โ†’ blacktrigram.com ยท ๐Ÿ“˜ API Docs ยท ๐Ÿ“ฆ npm ยท ๐Ÿค– DeepWiki

Experience authentic Korean combat techniques with anatomical precision across 5 unique fighting archetypes, 8 trigram stances, and 70 vital points.

Built with ๐ŸŽฏ Combat Precision ยท ๐Ÿ‡ฐ๐Ÿ‡ท Cultural Authenticity ยท ๐Ÿ” Radical Transparency

๐Ÿฅ‹ ํ‘๊ด˜์˜ ๊ธธ์„ ๊ฑธ์–ด๋ผ โ€” Walk the Path of the Black Trigram ๐Ÿฅ‹

About

Black Trigram is a realistic combat simulator that teaches authentic Korean martial arts through precise anatomical targeting. Master traditional vital point techniques through modern 3D combat mechanics across 5 distinct fighter archetypes.๐Ÿฅ‹ Black Trigram (ํ‘๊ด˜) ์–ด๋‘ ์˜ ๋ฌด์˜ˆ๋กœ ์™„๋ฒฝํ•œ ์ผ๊ฒฉ์„ ์ถ”๊ตฌํ•˜๋ผ "Master the dark arts through the pursuit of the perfect strike"

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Generated from Hack23/game