Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How this embed images works in JS file opened with notepad?

I started to programming again after long time and I downloaded some JS chess game to modify it and made a game based on chess.

I get so confused cause using the notepad I found this lines:

const piecesCharacters = {
0: '♙',
1: '♘',
2: '♗',
3: '♖',
4: '♕',
5: '♔'};

WTF is that. This is not notepad coding! There is not directory of the images? Not URL? The images are embed to the js file? How can i modify that images?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Excuse me for being such a noob and thanks a lot

>Solution :

Unicode (the main standard for encoding text for computers) has a wide variety of symbols representing numbers and letters from a wide variety of languages, mathematical symbols, other symbols and icons, and even emoji.

Those examples are chess symbols from character block 0x1FA00.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading