Skip to Main Content

Math major masterminds crack the code of a classic board game

July 16, 2025
by Emrah Jusufoski '28

What do you get when you put two curious math majors together with a classic board game? The result is new discoveries that could change how we think about strategy and problem-solving — all thanks to rainbow static Mastermind. 

If you’ve never played Mastermind, here are the basics: One player creates a secret code using colored pegs, and the other tries to guess it using logic, pattern recognition, and plenty of creativity.  

In the rainbow static variation of the game, the codebreaker must supply a list of questions to determine their opponent’s code. None of the colors are repeated. The goal is to break the code with the shortest possible list of questions. 

For Riley Vavolizza ’26, a mathematics and education studies major from Pleasantville, New York, and Rachel Xia ’26, a mathematics major from Tianjin, China, the familiar childhood game has become the ultimate research puzzle.  

Associate Professor Kirsten Hogenson maps out Mastermind strategies on the whiteboard during a summer research session. 

Associate Professor Kirsten Hogenson uses math to show a new way to solve the classic peg-and-color puzzle.

The two students are spending five weeks over the summer working with Associate Professor Kirsten Hogenson in the Department of Mathematics and Statistics as part of ’s Faculty Student Summer Research program. Scores of students  — more than 120 in 2025 — from fields as disparate as philosophy and neuroscience participate each summer.  

Together, Hogenson, Vavolizza, and Xia have been diving into strategies for cracking codes in the shortest number of guesses. It’s not just about playing the game — it’s about pushing the limits of what is possible. 

 “It’s all about experimenting with different combinations, patterns, and new rules to discover better strategies,” Vavolizza explains. 

One of their coolest discoveries? They determined a shorter winning question list than previously known for when a player has three pegs and multiple colors. In math speak, they found a new upper bound (a value greater than or equal to all other values in a given set) for gr(3,k), where 3 is the number of pegs and k represents the number of colors.  

They verified that their list will always win the game and that it's the shortest list when the number of colors is small. They're now working on a proof that will show they have the best possible list for larger values of k.