Unicode Madness: 東方名確認 ~ Eastern Title Validator.
Description:
Background Information
7 (out of 100+) characters in the series
Anyone in touch with anime and Japanese otaku culture in general should know of something called Touhou Project
. Touhou Project is a doujin bullet hell game series published by Team Shanghai Alice, also known as ZUN, a person who single-handedly developed the games. It's already 2 decades old - spanning with over 10 works and many side games/side comics!
The games are known for lots of characters and their quirky dialogues, bosses all in the form of girls in intricate clothings instead of your regular mechas, intriguing fantasy kitchen sink settings, and most importantly, a unique take on the bullet hell genre: instead of throwing as many bullets to you as possible, the games group the boss's attacks in several "spell cards" (think of it as a specific move you call on) which has meaningful names, and the bullets, while still very hard to dodge, resemble patterns that are also meaningful and serve as a narrative tool. Some people even says that Undertale's bullet hell mechanics are influenced by Touhou!
(Also, it's known for a lot of fanworks.)
And if you haven't noticed already, my avatar is a character from Touhou.
Task
You need to verify whether a given string is a valid title for a Touhou game.
A valid Touhou game title is always in this format:
東方紅魔郷 ~ the Embodiment of Scarlet Devil.
|<--1--->|<2>|<-------------3--------------->|
A Touhou game title has 3 mandatory parts:
- The Japanese title. It always start with
東方
, followed by 3 common CJK Ideographs. - The connection. It is always the same
' ~ '
(full-width space, full-width tilda, then normal whitespace). - The English alternate title, ended by a full stop. Every word should be capitalized except these function words:
of, in, at, to, and
anda, an, the
.
Return true
if a title is indeed a valid Touhou game title, and false
otherwise.
Similar Kata:
Stats:
Created | May 14, 2017 |
Published | May 14, 2017 |
Warriors Trained | 122 |
Total Skips | 2 |
Total Code Submissions | 387 |
Total Times Completed | 51 |
JavaScript Completions | 51 |
Total Stars | 5 |
% of votes with a positive feedback rating | 94% of 32 |
Total "Very Satisfied" Votes | 29 |
Total "Somewhat Satisfied" Votes | 2 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 6 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 6 kyu |