Tracks
/
Futhark
Futhark
/
Exercises
/
High Scores
High Scores

High Scores

Medium

Instructions

Manage a game player's High Score list.

Your task is to build a high-score component of the classic Frogger game, one of the highest selling and most addictive games of all time, and a classic of the arcade era. Your task is to write methods that return the highest score from the list, the last added score and the three highest scores.

Sorting package

This exercise requires you to sort an array, but this isn't built into the standard library. You could write your own sorting library, but a better option is to use the sorts package.

You can use this package in your solution by running the following command in the solution directory:

futhark pkg add github.com/diku-dk/sorts
futhark pkg sync

Then, import your desired sorting algoritms via:

import "lib/github.com/diku-dk/sorts/<sorting algorithm>"

Source

Tribute to the eighties' arcade game Frogger
Edit via GitHub The link opens in a new window or tab
Futhark Exercism

Ready to start High Scores?

Sign up to Exercism to learn and master Futhark with 83 exercises, and real human mentoring, all for free.