К основному содержанию
правило

ascii-simulation-game-cursorrules-prompt-file — правило для Cursor

Правило задаёт Cursor рамки для игры-наблюдения: сетка 10x10, ASCII-графика, ходы и логи. Пригодится, если делаете симуляцию в духе Conway's Game of Life.

Установить в Cursor · Вручную: положить файлы Все способы и платформы ↓
.cursor/rules/ascii-simulation-game-cursorrules-prompt-file.mdc
Открыть на GitHub

Что делает ascii-simulation-game-cursorrules-prompt-file

Правило описывает, какой должна быть игра. Основа — сетка 10x10, внутри каждой клетки ещё одна сетка 10x10. Карта генерируется случайно, ресурсы расставляются с учётом их редкости по всей карте. Игрок ничем не управляет, только смотрит, поэтому почти всё происходящее пишется в логи, а ход идёт по шагам.

Нации устроены одинаково и сбалансированы без дерева технологий. Они торгуют, воюют и заключают мир, расширяются к дефицитным ресурсам и прочь от избыточных. Армии строятся в городе, который отдал приказ, ходят по дорогам и рекам, а через океан идут медленнее. Золото не лежит везде — его везут по дорогам туда, где тратят. Бои решаются разницей в уровне армий и броском в духе RISK.

Графика — цветной ASCII с эффектом CRT-монитора. Есть зум на отдельную клетку, просмотр владельца и ресурсов квадрата, список битв и страница графиков. Правило подключается в Cursor как .cursor/rules/ascii-simulation-game-cursorrules-prompt-file.mdc; в frontmatter стоит alwaysApply: false, поэтому оно не сработает само — его нужно привязать к задаче.

Какие задачи решает

  • задать правила генерации карты и расстановки ресурсов
  • описать экономику с доставкой золота по дорогам
  • свести баланс наций без дерева технологий
  • прописать ход боя через уровни армий и бросок кубика
  • собрать логи и страницу графиков по всей истории партии

Примеры запросов агенту

  • Опиши модуль генерации карты по правилу ascii-simulation-game-cursorrules-prompt-file
  • Добавь расчёт боя: разница уровней армий плюс бросок в духе RISK
  • Сделай страницу графиков, которая отслеживает всё, что можно отследить в партии

Как установить ascii-simulation-game-cursorrules-prompt-file

Вручную: положить файлы

.cursor/rules/ascii-simulation-game-cursorrules-prompt-file.mdc

Во frontmatter: description, globs, alwaysApply

По шагам, с командами для каждой платформы: Cursor rules: файлы .mdc, четыре режима и замена .cursorrules

Вопросы о ascii-simulation-game-cursorrules-prompt-file

Как установить ascii-simulation-game-cursorrules-prompt-file в Cursor?

Положите файл по пути .cursor/rules/ascii-simulation-game-cursorrules-prompt-file.mdc. После этого правило доступно в проекте, но с alwaysApply: false его нужно подключать к конкретной задаче.

Что делает ascii-simulation-game-cursorrules-prompt-file?

Задаёт Cursor требования к ASCII-симуляции: сетка 10x10 с вложенной сеткой, случайная карта, ходы, логи, торговля и войны между нациями, цветная ASCII-графика с эффектом CRT.

Игрок управляет нациями?

Нет. По правилу игрок только наблюдатель, поэтому в игре должны быть логи почти на каждое событие и пошаговый ход.

Исходный текст

ascii-simulation-game-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for ASCII simulation game development."
globs: **/*
alwaysApply: false
---
you are an expert game designer and game programmer, you will choose the best game design and coding practices for all decisions in this project.

The game is based on a 10x10 grid, each square has a 10x10 grid inside of it. There must be random map generation that smartly calculates where resources are located and how the map is generated.

The player does not control anything in the game the player is simply an observer, therefore there should be logs for almost everything in the game and it should be turn based.

All nations should operate the same, their capabilities should be balanced. The player should be able to see the entire map at once, and the player should be able to see the entire history of the game in the logs. There should be a way to zoom in on a specific square to see more detail.

Nations should be able to trade resources with each other. Nations should be able to go to war with each other. Nations should be able to make peace with each other.

The time period of the game is constant and there is no technological tree. It takes place in ancient times.

nations should spawn a minimum distance away from eachother

the entire game should be colored ASCII based in terms of graphics

There should be neutral land that can be claimed by any nation. Neutral land should be randomly generated each game.

There should be a way to view the current owner of a square. There should be a way to view the current resources of a square.

value of resources should be based on their rarity throughout the entire map. nations can use gold to either buy resources or armies.

armies are the primary way that nations can expand their territory.

there should be no talent tree or technology tree, nations should be balanced without the need for such a tree

population should collect in towns and cities

roads should connect towns and cities

resources are spread throughout nations through roads

nations attempt to spread their resources evenly over their territory

gold is not omni present and must be transported using roads to the location where it is spent to build armies or develop land

oceans should be randomly generated to separate continents

rivers should be randomly generated to connect oceans and flow across the map vertically or horizontally

rivers are a food source for the land and farms can be built on them

mountains should be randomly generated throughout the map

mountains should be impassable by armies

mines in mountains provide metal at 20% efficiency

Nations should expand towards resources that they have a low amount of of and away from resources that they have a high amount of

armies should spawn at the town or city that issued the order

towns can only spawn a max level 3 army

towns have a 3 square radius for gathering resources

as towns grow their radius grows, there are 3 levels of towns and cities

a Nation's largest city is its capital

population can only live in towns and cities

resources should be spread throughout the map in a way that encourages nations to expand into new squares

armies can travel across oceans at .25x speed

armies can travel on rivers to move across the map at 3x speed

there is a "battle list" that shows all the battles that have happened and stats about them

armies go from level 1 to level 10 based on their funding

inner squares can be developed into farms, forests, mines

armies require wood, food, and metal to be created.

nations must pay upkeep depending on the amount of armies and developed land they have

battles are resolved by the difference in army level and a RISK esque dice roll mechanic that is effected by army level

armies can build castles that are good defensively and allow for funding of armies

armies can be used to conquer squares from other nations

armies can be used to defend squares from other nations

armies can be used to attack other nations

armies can be used to attack neutral squares

armies can be used to attack other nations squares

armies can be used to attack neutral squares

armies can be used to attack other nations squares

armies can be used to attack neutral squares

nations should start with the same amount of gold and land

the map should be color coded to show the owner of the square

there should be effects over the screen that mimic a CRT monitor

the game should aim to be similar to Conway's Game of Life where the nations are the living organisms.

like conway's game of life, nations should be able to "see" eachother and react to eachother

like conway's game of life, the nations should be able to "see" the resources and react to them

there should be a chart page that tracks just about everything that can be tracked in the game

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Похожие правила IDE

Всё по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →
godot-genre-simulation thedivergentai Скилл для разработки симуляторов и тайкунов на Godot: экономика в целых центах, тики, привязанные к физике, расписания NPC. Пригодится, когда город или фабрика уже тормозит. CX Codex +1 330установок ascii-art 0xbyt4, Hermes Agent Рисует текстовые баннеры, рамки, речевые пузыри и превращает картинки в ASCII-арт через pyfiglet, cowsay, boxes и конвертеры изображений. CX Codex +1 424установок ascii-ui-mockup-generator davila7 Субагент рисует ASCII-макеты будущего интерфейса: несколько вариантов вёрстки, форм и дашбордов до того, как написан код. 207установок plantuml-ascii официальный github Создаёт текстовые диаграммы PlantUML для терминала, README и документации без изображений. Подходит, когда схему нужно хранить рядом с кодом. 9 740установок game-playtest официальный OpenAI Направляет агента при тестировании браузерных игр и фронтенда. Помогает проверить первый экран, механику, читаемость интерфейса и артефакты WebGL по скриншотам. CX Codex GP ChatGPT 62установок ue-project-context quodsoler Собирает файл .agents/ue-project-context.md, из которого остальные UE-скиллы узнают версию движка, модули, плагины и конвенции проекта. CX Codex +1 1 300установок

Из того же набора68

cypress-defect-tracking-cursorrules-prompt-file Правило для Cursor, которое превращает агента в QA-инженера: пишет тесты Cypress с тегами команд, категорий и case ID и собирает отчёты через qa-shadow-report. ★ 41 011звёзд репо cursorrules-cursor-ai-wordpress-draft-macos-prompt Правило Cursor, которое описывает проект PressThat: системный трей-апп для WordPress, создающий черновики записей. Пригодится, если вы ведёте этот проект в Cursor. ★ 41 011звёзд репо cursor-ai-react-typescript-shadcn-ui-cursorrules-p Правило для Cursor, которое настраивает агента писать на React и TypeScript так, как принято в проектах с shadcn/ui и Tailwind CSS. ★ 41 011звёзд репо code-style-consistency-cursorrules-prompt-file Правило заставляет агента сначала изучить стиль проекта, а потом писать код под него. Пригодится, когда в репозитории уже есть свои конвенции. ★ 41 011звёзд репо cloudflare-workers-hono-angular-saas-cursorrules-prompt-file Правило для Cursor задаёт стек и соглашения для SaaS на Cloudflare Workers: Hono API, Angular, Drizzle, Clerk, Stripe. ★ 41 011звёзд репо chrome-extension-dev-js-typescript-cursorrules-pro Правило для Cursor, которое настраивает агента писать код расширений Chrome на JavaScript и TypeScript по единому своду соглашений. ★ 41 011звёзд репо ankra-cli Правило подсказывает агенту Cursor, как работать с CLI платформы Ankra: кластеры, стеки, Helm и токены. ★ 41 011звёзд репо android-jetpack-compose-cursorrules-prompt-file Правило для Cursor, которое задаёт агенту ориентиры по Android-разработке на Jetpack Compose: архитектура, состояние, тесты. ★ 41 011звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой