VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Fortnite›Verse Language·Up to Fortnite · Verse Language·5 of 570 in Verse Language

Practice Time: Catching a Mouse in Verse

This simple algorithm shows how a player wins when catching a mouse:

Mouse spawns near the player. Player chases the mouse. Player catches the mouse.

Now it's your turn.

Expand the algorithm to show that the player starts with five gold coins, receives a coin for every mouse caught, and loses a coin for every mouse that gets away.

There is no wrong way to do this. It's an exercise to get you thinking about how algorithms can be broken out into steps to solve a problem or accomplish something.

Next Lesson

  • [Lesson 2: Basic Programming Components

    Lesson 2: Basic Programming Components

    Time to look at some of the elements that make code work.](/docs/documentation/en-us/fortnite/basics-of-writing-code-2-basic-programming-concepts-in-verse.md)

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Verse Language · 5 of 570
Prev
basics of writing code 1 basic programming terms in verse
Next
basics of writing code 2 basic programming concepts in verse
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2026-03-29T10:06:16.231713+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

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