Files
BreakEscape/scenarios/test_complex_multidirection.json
Z. Cliffe Schreuders e9eb9d96c8 docs: Update room layout documentation and add comprehensive test scenarios
Updated README_scenario_design.md with new grid-based room layout system:
- Documented Grid Unit (GU) system: 5×4 tiles base unit
- Added valid room size specifications (widths: multiples of 5, heights: 2+4N)
- Replaced old north/south-only constraints with four-direction support
- Updated door placement rules for N/S/E/W connections
- Added room positioning algorithm documentation
- Revised scenario design guidelines for grid system flexibility

Created 5 comprehensive test scenarios:
1. test_vertical_layout.json - Traditional N/S stacking
2. test_horizontal_layout.json - E/W connections
3. test_complex_multidirection.json - All four directions
4. test_multiple_connections.json - Multiple doors per direction
5. test_mixed_room_sizes.json - Different room sizes (1×1, 1×2, 2×2 GU)

Added TEST_SCENARIOS_README.md documenting:
- Grid system overview and room size specifications
- Detailed test scenario descriptions with layout diagrams
- Testing procedures and validation checks
- Expected console output examples
- Troubleshooting guide

Note: Scenarios reference hall_1x2gu.json and small_room_1x1gu.json which
need to be created in assets/rooms/. Currently using 2×2 GU placeholders.

All test scenarios include:
- Visual layout diagrams in scenario_brief
- Progressive difficulty with locks and keys
- Documentation of what each scenario tests
- Notes explaining grid system concepts
2025-11-17 08:49:50 +00:00

143 lines
4.1 KiB
JSON

{
"scenario_brief": "Test Scenario: Complex Multi-Direction Layout\n\nThis scenario demonstrates complex layouts using all four directions with the new grid-based system.\n\nLayout:\n [Storage] [CEO]\n ↑ ↑\n [Office1] ← [Office2] → [Servers]\n ↑\n [Reception]\n\nTests:\n- All four directions in use\n- Multiple connection types\n- Complex navigation paths\n- Door alignment in mixed layouts",
"startRoom": "reception",
"startItemsInInventory": [
{
"type": "notes",
"name": "Mission Brief",
"takeable": true,
"readable": true,
"text": "Complex Multi-Direction Test\n\nYour mission: Navigate through a facility with rooms in all directions.\n\nAll offices require keys. Search thoroughly!"
}
],
"rooms": {
"reception": {
"type": "room_reception2",
"connections": {
"north": "office2"
},
"objects": [
{
"type": "key",
"name": "Office 2 Key",
"takeable": true,
"observations": "Key to Office 2"
}
]
},
"office2": {
"type": "room_office2",
"locked": true,
"lockType": "key",
"requires": "office2_key",
"connections": {
"south": "reception",
"north": "ceo",
"west": "office1",
"east": "servers"
},
"objects": [
{
"type": "notes",
"name": "Central Hub",
"takeable": true,
"readable": true,
"text": "Office 2 - Central Hub\n\nConnections:\nNorth: CEO Office\nSouth: Reception\nEast: Server Room\nWest: Office 1\n\nThis room connects in all four directions!"
},
{
"type": "key",
"name": "Office 1 Key",
"takeable": true,
"observations": "Key to Office 1"
},
{
"type": "key",
"name": "Server Room Key",
"takeable": true,
"observations": "Key to Server Room"
}
]
},
"office1": {
"type": "room_office2",
"locked": true,
"lockType": "key",
"requires": "office1_key",
"connections": {
"east": "office2",
"north": "storage"
},
"objects": [
{
"type": "key",
"name": "Storage Key",
"takeable": true,
"observations": "Key to storage room"
},
{
"type": "notes",
"name": "Office 1 Log",
"takeable": true,
"readable": true,
"text": "Office 1 - West Wing\n\nStorage room is to the north.\nOffice 2 is to the east."
}
]
},
"storage": {
"type": "room_office2",
"locked": true,
"lockType": "key",
"requires": "storage_key",
"connections": {
"south": "office1"
},
"objects": [
{
"type": "key",
"name": "CEO Office Key",
"takeable": true,
"observations": "Golden key to CEO office"
}
]
},
"servers": {
"type": "room_servers2",
"locked": true,
"lockType": "key",
"requires": "server_key",
"connections": {
"west": "office2"
},
"objects": [
{
"type": "notes",
"name": "Server Log",
"takeable": true,
"readable": true,
"text": "Server Room - East Wing\n\nThis room is accessed from the west.\nMakes a good test for west-facing doors."
}
]
},
"ceo": {
"type": "room_ceo2",
"locked": true,
"lockType": "key",
"requires": "ceo_key",
"connections": {
"south": "office2"
},
"objects": [
{
"type": "notes",
"name": "Victory!",
"takeable": true,
"readable": true,
"text": "Congratulations! Complex multi-direction layout complete!\n\nThis scenario tested:\n- All four directions (N, S, E, W)\n- Central hub room with 4 connections\n- Complex navigation requiring backtracking\n- Door alignment in all directions\n- Grid-based positioning for complex layouts",
"important": true,
"isEndGoal": true
}
]
}
}
}