Rustaceans

Exploring Rust: Insights and Expertise from Rustaceans

Member-only story

Rust Challenge: Yacht

Learning Rust Through Small Challenges

John Philip
Rustaceans
Published in
5 min readDec 3, 2024

--

Photo by Eric Ward on Unsplash

In this mini Rust challenges, we will solve a problem using Rust. The goal of these challenges is to get comfortable reading and writing Rust code by solving various problems.

I do them on a daily basis, so if you want to join please come back here every day and check every challenge and lets us solve them together.

Challenge

These challenges are based on exercises from Exercism. You can find the original challenge and more on their platform below.

Instructions

Introduction

Each year, something new is “all the rage” in your high school. This year it is a dice game: Yacht.

The game of Yacht is from the same family as Poker Dice, Generala and particularly Yahtzee, of which it is a precursor. The game consists of twelve rounds. In each, five dice are rolled and the player chooses one of twelve categories. The chosen category is then used to score the throw of the dice.

--

--

Rustaceans
Rustaceans

Published in Rustaceans

Exploring Rust: Insights and Expertise from Rustaceans

John Philip
John Philip

Written by John Philip

Dev | Life Café | Twitter at @amjohnphilip | Email: dxphilo@gmail.com

No responses yet