By TxPipe

Move Ship

Updates the pos_x, pos_y and fuel datum fields of the ShipState UTxO by adding the delta_x and delta_y values specified in the redeemer, and subtracting the fuel amount needed for the displacement.

moveShip diagram

Lucid Example

You can use the following Lucid script to move your ship. The supporting files are available here.