Created on 28th February 2021
•
The game is a clone of the popular web based drawing and guessing game skribbl.io. However, our version of the game has extensive support for around 10 Indian languages. Using this game, people can improve their vocabulary and can be used to help young kids learn a language at schools in a fun manner.
It might sound very trivial but this did not come across our minds at all when we were planning. It is to do with splitting a string to get an array of characters. This is trivial in a language like english, all we need to do was use
String.split('')
and the job is done. However, since we had to support other indian languages also, there was a huge problem. The problem is if you do"अनुच्छेद".split('')
, it wont work anymore. The following array is returned["अ", "न", "ु", "च", "्", "छ", "े", "द"]
.To solve this problem, we googled a lot. And finally decided to ask a question on stackoverflow. We got an answer from someone from whom we learnt about graphemes, which was the key. We were finally able to find a module on NPM which did what we wanted to.