如何建立动态单词子手游戏

I'm reading this guide to improve my vue.js knowledge. I want to make the same game but I want to use socket io to add the multiplayer to it. In particular, How I can set the single letters of a word inside my array like the original code?

在指南中,有一个静态单词,但使用socket.io这个单词将由玩家设置,因此我只需要了解如何获得相同的结果即可。我是javascript新手,我将以此为练习来提高自己的技能。

这取自原始代码:

    displayLetters: ['','','',''],
    wordLetters: ['C','O','O','L'],
    possibleLetters: ['A', 'B', 'C', 'L', 'O'],

The word is divided into single letters, so I guess that I will need to split the provided user word in letters and then assign them to the displayLetters and wordLetters array?