> ## 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.

# Move Ship

> Allows a player to move one of their ships across the game board in a specified direction, consuming move points.



## OpenAPI

````yaml api-reference/cubic-api.json post /api/v1/cubic/moveShip
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/moveShip:
    post:
      tags:
        - Cubic
      summary: Move Ship
      description: >-
        Allows a player to move one of their ships across the game board in a
        specified direction, consuming move points.
      operationId: CubicController_moveShip
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveShipDTO'
            examples:
              moveShipExample:
                summary: Example of moving a ship
                value:
                  gameID: uniqueGame123
                  direction: FORWARD
                  movingShip:
                    teamName: RedTeam
                    shipName: RedScout1
        description: >-
          Details for moving a ship, specifying the game ID, the direction of
          movement, and the ship to be moved.
      responses:
        '201':
          description: Ship successfully moved.
components:
  schemas:
    MoveShipDTO:
      type: object
      properties:
        gameID:
          type: string
          description: The unique identifier of the game.
        direction:
          type: string
          enum:
            - CURRENT
            - UP
            - DOWN
            - LEFT
            - RIGHT
            - FORWARD
            - BACK
          description: >-
            The direction in which the ship should move relative to its current
            position.
        movingShip:
          $ref: '#/components/schemas/ShipIdentifierDTO'
          description: The ship that is performing the move action.
      required:
        - gameID
        - direction
        - movingShip
      description: Data transfer object for instructing a ship to move.
    ShipIdentifierDTO:
      type: object
      properties:
        teamName:
          type: string
          description: The name of the team to which the ship belongs.
        shipName:
          type: string
          description: The unique name of the ship.
      required:
        - teamName
        - shipName
      description: >-
        Data transfer object for uniquely identifying a ship by its team and
        name.

````