Skip to content

Wall Construction Overview

Alexandar83 edited this page Feb 23, 2025 · 12 revisions

This page outlines the principles of wall construction , focusing on construction mechanics, crew management, and configuration file handling.

1. Wall Mechanics

  • A single construction crew adds one foot of height per day to a section.

  • The heights of all unfinished sections with active crews are incremented by one before the build continues to the next simulated day.

  • A section is complete when it reaches a height of 30 feet.

  • Each additional foot of height for a section requires 195 cubic yards of ice.

  • Processing one cubic yard of ice costs 1,900 Gold Dragon coins.

2. Number of Crews Query Parameter

  • The num_crews parameter is optional and impacts only the behavior of the profiles endpoints.

  • Default behavior - num_crews is not provided in the request:

    • Each wall section has its own designated construction crew

      ℹ️ This default behavior is also applied if the provided num_crews parameter is:

      • Set to 0
      • Greater than or equal to the number of wall sections
  • If the user provides the num_crews query parameter, the calculations follow these rules:

    • Each available crew is assigned to an unfinished section of the wall.
    • When a crew finishes its assigned section, it is reassigned to the next unfinished section.
    • If no unfinished sections remain, the crew is relieved after completing its task.

💡 For more details, please refer to the Detailed OpenAPI Documentation.

3. Wall Configuration File Format

  • Uploaded files must meet the following requirements:
    • File Extension: .json.

    • File Content: Valid JSON data that represents a nested list of lists of integers.

      ℹ️ The outer list represents the entire wall. The inner lists represent individual wall profiles, where each integer indicates the height of a specific profile section.

      • Example:

      [
        [21, 25, 28],
        [17],
        [17, 22, 17, 19, 17]
      ]

Next:   Detailed Cost and Resource Calculations
Back to: General Workflow and Swagger UI Guide

Return to Top
DFS Index
Home Page


Clone this wiki locally