Procon 37 API (0.0.0)

Download OpenAPI specification:

1_初期アクセス

試合設定取得API

試合設定を取得する

query Parameters
token
string
header Parameters
Procon-Token
string

Responses

Response samples

Content type
application/json
{
  • "startsAt": 0,
  • "daySeconds": [
    ],
  • "daySteps": [
    ],
  • "map": {
    },
  • "spots": [
    ],
  • "agents": [
    ],
  • "fuelLimits": 0,
  • "players": 0,
  • "busyThreshold": 0,
  • "jammedThreshold": 0
}

2_初期設定

エージェント種別決定API

エージェント種別を提出する

query Parameters
token
string
header Parameters
Procon-Token
string
Request Body schema: application/json
required

エージェント種別決定で提出するエージェント種別一覧。 配列の要素数はエージェント数と一致する必要がある。

例: [0, 1, 0, 1]

Array
number (AgentKind)
Enum: 0 1

エージェント種別

Responses

Request samples

Content type
application/json
[
  • 0
]

Response samples

Content type
application/json
{
  • "code": "AuthError",
  • "message": "string"
}

3_状態取得

試合状態取得API

現在の試合状態を取得する

query Parameters
token
string
header Parameters
Procon-Token
string

Responses

Response samples

Content type
application/json
{
  • "endsAt": 0,
  • "day": 0,
  • "agents": [
    ],
  • "others": [
    ],
  • "traffics": [
    ]
}

4_行動提出

行動計画提出API

行動計画を提出する

query Parameters
token
string
header Parameters
Procon-Token
string
Request Body schema: application/json
required

全エージェント分の行動列 配下は1エージェント分の行動列。

各要素の意味:

  • -1 以下: 待機。待機ステップ数はその絶対値
  • 0..5: 移動方向(0:左上, 1:右上, 2:右, 3:右下, 4:左下, 5:左)

例:

  • [-15] は 15 ステップ待機
  • [0, 1, -10] は移動後に 10 ステップ待機

妥当性ルール:

  • 合計ステップ数がその日のステップ数と一致しない場合は不正
  • 移動できない方向への移動は不正
  • 必要燃料が不足する移動は不正
  • 1つでも不正な行動が含まれる場合、全エージェントの行動計画を不正として扱う
Array
Array
integer <int32>

Responses

Request samples

Content type
application/json
[
  • [
    ]
]

Response samples

Content type
application/json
{
  • "revision": 0
}