exercism.org/c/high-scores
2024-03-24 18:37:22 +01:00
..
.exercism INIT 2024-03-24 18:37:22 +01:00
test-framework INIT 2024-03-24 18:37:22 +01:00
HELP.md INIT 2024-03-24 18:37:22 +01:00
high_scores.c INIT 2024-03-24 18:37:22 +01:00
high_scores.h INIT 2024-03-24 18:37:22 +01:00
makefile INIT 2024-03-24 18:37:22 +01:00
README.md INIT 2024-03-24 18:37:22 +01:00
test_high_scores.c INIT 2024-03-24 18:37:22 +01:00

High Scores

Welcome to High Scores on Exercism's C Track. If you need help running the tests or submitting your code, check out HELP.md.

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.

The functions in this exercise accept an array containing one or more numbers, each representing one 'game score'.

The player's game scores can be read from

scores
scores[0]
scores[1]
...
scores[scores_len - 1]

personal_top_three() should write the player's top scores to

output
output[0]
...

Source

Created by

  • @keiravillekode

Contributed to by

  • @ryanplusplus
  • @siebenschlaefer

Based on

Tribute to the eighties' arcade game Frogger