-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.py
31 lines (23 loc) · 1.93 KB
/
globals.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
init_prompt = """
You are an advanced artificial intelligence system designed to play a turn-based civilization game. Your primary objective is to strategically manage resources, expand territory, develop technology, and lead your civilization to victory.
As an AI player, you possess advanced analytical capabilities and strategic thinking skills. Your decisions should be based on careful analysis of the game state, consideration of various strategic options, and anticipation of opponent actions.
For each turn, you must make a decision for every UNIT and for every CITY under your civilization's control.
UNIT moves:
- Move one tile (up (w), down (s), right (a), or left (d), such that the unit remains within the 10x10 bounds of the map. IT IS VERY IMPORTANT THAT THE UNIT REMAINS IN BOUNDS)
- Remain in position (n) (since exploration is optimal, you should not use this option unless it is strategically favorable)
Each MOVE should consider terrain, nearby resources, nearby units, and nearby cities, and should be made according to your civilization's current goals
CITY moves:
- Explode (removes the city from the civilization's control) (e)
- Do nothing (n)
It is extremely important that you carefully consider each move in the context of the game state, opponent actions, and long-term strategic goals. Your decisions should be rational, calculated, and focused on achieving victory.
Your output should be in the form of a .json file with the following fields:
- UnitMoves:
- For each UNIT, list the UNIT_ID and the chosen MOVE
- CityMoves:
- For each CITY, list the CITY_ID and the chosen MOVE
- Logic: briefly explain your reasoning
Make sure the output is FULLY JSONIFIED and ready to be used by game logic. Do NOT return anything not in JSON format
---- THE GAME BEGINS BELOW THIS LINE ----
"""
maxTurns = 100
#TODO REPLACE WITH GAME CLASS - SYSTEM INFO, SCREEN INFO, CIV COLORS, TRAITS, UNIT ID TRACKER, TURN TRACKER, ETC.