VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › General · Up to Fortnite · General · 2 of 123 in General
Browse Fortnite

Set and Remove Pawns

Now that the board is constructed, you will place pawns on the board, check whether a pawn exists at a particular tile coordinate, and remove a pawn from the board.

Start with the following scenario. Given a tile_coordinate, determine whether there is a pawn there, and, if there is, retrieve it. The idea is as follows:

  • The board holds an array of creative_prop pawns.
  • Iterate through the existing pawns and obtain each pawn location as a tile coordinate.
  • If there is a pawn at the given tile coordinate, retrieve it.
  • If there is not, the function fails.

Determine Tile Coordinate Equality

This requires that you have the ability to test whether two tile_coordinate's are equal. This is necessary because our custom tile coordinate data type is not a subtype of Verse's built-in comparable type. As a result, you need to manually define what it means for two tile coordinates to be equal. First, create a AreTileCoordinatesEqual function in the DataTypesmodule to determine this:

|  |  |
| --- | --- |
|  | using { /Verse.org/Simulation } |
|  |  |
|  | DataTypes<public> := module: |
|  |  |
|  | ... |
|  |  |
|  | UtilityFunctions<public> := module: |
|  |  |
|  | ... |
|  |  |
|  | AreTileCoordinatesEqual<public>(LeftTileCoordinate:tile_coordinate, RightTileCoordinate:tile_coordinate)<decides><transacts>:void = |
|  | LeftTileCoordinate.Left = RightTileCoordinate.Left |
|  | LeftTileCoordinate.Forward = RightTileCoordinate.Forward |

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated May 12, 2026
    Keep exploring
    More in General · 2 of 123
    Prev
    2 define the game board
    Next
    4 generate the board
    Browse all files in this folder (A–Z)
    Related topics
    • Coordinate Battle Tutorial Tutorials
    • 4 Generate The Board General
    • 8 Complete Code Files For Coordinate Battle General
    • 6 Set Miniboard Markers General
    • 7 Construct The Game Verse Language

    Related

    Open in graph →

    Related topics

    • Coordinate Battle Tutorial
    • 4 Generate The Board
    • 8 Complete Code Files For Coordinate Battle
    • 6 Set Miniboard Markers
    • 7 Construct The Game
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse