6 kyu

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:

  1. The Japanese title. It always start with 東方, followed by 3 common CJK Ideographs.
  2. The connection. It is always the same ' ~ ' (full-width space, full-width tilda, then normal whitespace).
  3. The English alternate title, ended by a full stop. Every word should be capitalized except these function words: of, in, at, to, and and a, an, the.

Return true if a title is indeed a valid Touhou game title, and false otherwise.


Strings
Unicode
Fundamentals

Stats:

CreatedMay 14, 2017
PublishedMay 14, 2017
Warriors Trained122
Total Skips2
Total Code Submissions387
Total Times Completed51
JavaScript Completions51
Total Stars5
% of votes with a positive feedback rating94% of 32
Total "Very Satisfied" Votes29
Total "Somewhat Satisfied" Votes2
Total "Not Satisfied" Votes1
Total Rank Assessments6
Average Assessed Rank
5 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • Voile Avatar
  • smile67 Avatar
  • KayleighWasTaken Avatar
Ad