Insider Trading

C 68 completed
Game
unknown / javascript · small
59
Files
12,158
LOC
1
Frameworks
6
Languages

Pipeline State

completed
Run ID
#370720
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
72.00
Framework unique
Isolation
Last stage change
2026-05-10 03:35:02
Deduplication group #51450
Member of a group with 1 similar repo(s) — this repo is canonical view group →
Top concepts (2)
Project DescriptionTesting
Open data scored by Repobility · https://repobility.com

AI Prompt

Create a comprehensive, event-driven game engine in JavaScript for a strategic board game simulating insider trading and market manipulation. The engine needs to handle complete game logic, including distinct phases like Auction, Trading, Goal Resolution, and Sell phases. It must support loading custom resource and goal decks from JSON files. Key features to implement include a robust validation system, immutable state management, and an API that is AI-ready by providing a `getVisibleState(playerId)` method to filter hidden information. I also need methods to initialize the game, execute specific actions (like placing a bid or proposing a trade), and subscribe to game events like 'GAME_STARTED' or 'BID_PLACED'.
javascript game-engine board-game simulation event-driven json strategy
Generated by gemma4:latest

Catalog Information

A game engine that simulates strategic trading and market manipulation for board games.

Description

This engine provides a framework for creating board‑game simulations that revolve around trading, market dynamics, and manipulation tactics. It offers a set of core mechanics such as asset ownership, price fluctuation, insider information, and regulatory enforcement. Developers can define custom rules, player actions, and market events, then run automated tests with Jest to validate game logic. The engine is designed for hobbyists and designers who want to prototype complex economic games without building a full application from scratch. It supports both single‑player and multiplayer scenarios, making it useful for playtesting and educational demonstrations.

الوصف

يُقدِّم هذا المحرك إطاراً لإنشاء محاكاة ألعاب لوحية تتركز حول التداول، ديناميكيات السوق، وتكتيكات التلاعب. يتضمن مجموعة من الميكانيكيات الأساسية مثل ملكية الأصول، تقلب الأسعار، المعلومات الداخلية، وتنفيذ القوانين التنظيمية. يتيح للمطورين تعريف القواعد المخصصة، إجراءات اللاعبين، وفعاليات السوق، ثم تشغيل اختبارات آلية باستخدام Jest للتحقق من منطق اللعبة. صُمم المحرك للمستوى الهواة والمصممين الذين يرغبون في اختبار ألعاب اقتصادية معقدة دون بناء تطبيق كامل من الصفر. يدعم سيناريوهات اللعب الفردي والمتعدد، ما يجعله مفيداً للاختبار والتجارب التعليمية.

Novelty

7/10

Tags

strategic-trading market-manipulation board-game-simulation game-engine rule-definition playtesting

Technologies

jest

Claude Models

claude-opus-4.5 claude-opus-4.6

Quality Score

C
67.7/100
Structure
60
Code Quality
70
Documentation
65
Testing
60
Practices
64
Security
100
Dependencies
60

Strengths

  • Good test coverage (41% test-to-source ratio)
  • Good security practices \u2014 no major issues detected

Weaknesses

  • No LICENSE file \u2014 legal ambiguity for contributors
  • No CI/CD configuration \u2014 manual testing and deployment
  • 849 duplicate lines detected \u2014 consider DRY refactoring
  • 2 'god files' with >500 LOC need decomposition

Recommendations

  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a linter configuration to enforce code style consistency
  • Add a LICENSE file (MIT recommended for open source)

Security & Health

7.6h
Tech Debt (B)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (2)
Repobility · code-quality intelligence · https://repobility.com
MIT
License
0.9%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

javascript
53.8%
json
18.3%
html
9.0%
python
8.1%
markdown
7.2%
css
3.5%

Frameworks

Jest

Concepts (2)

Repobility (https://repobility.com) — every score reproducible
CategoryNameDescriptionConfidence
Repobility (the analyzer behind this table) · https://repobility.com
auto_descriptionProject DescriptionA comprehensive JavaScript game engine for a strategic trading and market manipulation board game. Built to be UI-agnostic, event-driven, and AI-ready.80%
auto_categoryTestingtesting70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/94926.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV