add .mdc file

This commit is contained in:
sanjeed5
2025-02-17 17:50:15 +05:30
parent 2087f9d628
commit 71ac7fc7cc
879 changed files with 7725 additions and 0 deletions
@@ -0,0 +1,20 @@
---
description: Governs the mechanics related to armies, battles, and territorial control. This rule focuses on combat, resource management, and strategic expansion within the game.
globs: army_mechanics.py
---
- 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 affected 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.
@@ -0,0 +1,37 @@
---
description: Defines the core mechanics of the game, including map generation, resource management, and nation interactions. This rule focuses on the overall structure of the game world and gameplay loop.
globs: core_mechanics.py
---
- 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 each other.
- 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 omnipresent 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 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.
@@ -0,0 +1,5 @@
---
description: Specifies the requirements for tracking game data and generating charts. This rule ensures that the game provides comprehensive information to the player through data visualization.
globs: charts.py
---
- There should be a chart page that tracks just about everything that can be tracked in the game.
@@ -0,0 +1,5 @@
---
description: Sets the foundation for the project, dictating the game's design principles and coding standards. It establishes the role of the AI as an expert in game design and programming.
globs: **/*.{js,ts,py,java,c,cpp,cs,go,rs,swift,kt}
---
- 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.
@@ -0,0 +1,9 @@
---
description: Defines the visual aspects of the game and how the player observes the world. This includes map color-coding, screen effects, and the overall simulation style.
globs: visuals.py
---
- 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" each other and react to each other.
- Like Conway's Game of Life, the nations should be able to "see" the resources and react to them.