Skip to main content

One post tagged with "Reverse Engineering"

View all tags

Revealing the Algorithm Behind the 'Touhou Project Personality Test'

· 5 min read
Fischer Su (苏心贤)
Founder of Sukima Moonlight

Today, the mini-test "Which Touhou Character Are You?" went viral in various QQ groups. As a proud CS student and the organizer of a Touhou doujin circle, I couldn't help but wonder: How does this test actually work? Does it truly use machine learning to match characters, or is it just simple conditional logic? Is my intuition about a "six-dimensional vector" matching actually correct?

To solve this mystery, I analyzed the source code of the webpage. In this article, I will take you deep into the code to see how your "soul character" is actually calculated.