> ## Documentation Index
> Fetch the complete documentation index at: https://transcension.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Game

> Initializes a new game instance with a unique identifier and defines the teams that will participate.



## OpenAPI

````yaml api-reference/cubic-api.json post /api/v1/cubic/createGame
openapi: 3.0.0
info:
  title: Cubic Game API
  description: >-
    API documentation for the Cubic game, providing endpoints for game
    management, ship actions, and retrieving game state information.
  version: '1.0'
  contact:
    name: Cubic Game Support
servers:
  - url: http://50.187.81.221:4000
    description: Rendezvous Cubic Server.
  - url: https://cubic.ngrok.app
    description: Ender's Cubic Server.
security: []
tags:
  - name: Cubic
    description: Operations related to the Cubic game mechanics.
paths:
  /api/v1/cubic/createGame:
    post:
      tags:
        - Cubic
      summary: Create Game
      description: >-
        Initializes a new game instance with a unique identifier and defines the
        teams that will participate.
      operationId: CubicController_createGame
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGameDTO'
            examples:
              createGameExample:
                summary: Example of creating a game
                value:
                  gameID: uniqueGame123
                  teams:
                    - name: RedTeam
                    - name: BlueTeam
        description: >-
          Game creation details including a unique game ID and participating
          teams.
      responses:
        '201':
          description: Game successfully created.
components:
  schemas:
    CreateGameDTO:
      type: object
      properties:
        gameID:
          type: string
          description: A unique identifier for the game instance.
        teams:
          type: array
          items:
            $ref: '#/components/schemas/TeamSetupDataDTO'
          description: An array of teams participating in the game.
      required:
        - gameID
        - teams
      description: Data transfer object for creating a new game.
    TeamSetupDataDTO:
      type: object
      properties:
        name:
          type: string
          description: The name of the team.
      required:
        - name
      description: Data transfer object for setting up a new team in the game.

````