VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse UEFN›Verse Language·Up to UEFN · Verse Language·36 of 123 in Verse Language

Verse Logic Practice

Lesson 1: Practice Time!

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

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

Time to look at some of the elements that make code work.](/docs/documentation/en-us/uefn/learn-code-basics-2-basic-programming-components-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 · 36 of 123
Prev
learn code basics 1 basic programming terms in verse
Next
learn code basics 2 practice time in verse
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2024-12-05T00:00:00+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