Member-only story
Rust Challenge: Secret Handshake
Learning Rust Through Small Challenges
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 challenges and more on their platform below.
Instructions
Introduction
You are starting a secret coding club with some friends and friends-of-friends. Not everyone knows each other, so you and your friends have decided to create a secret handshake that you can use to recognize that someone is a member. You don’t want anyone who isn’t in the know to be able to crack the code.
You’ve designed the code so that one person says a number between 1 and 31, and the other…