-
Notifications
You must be signed in to change notification settings - Fork 1
Add new words
KaptainAhoibrause edited this page Jun 6, 2024
·
4 revisions
For this you need to understand .json-files a bit.
{
"language": [
"word1",
"word2",
"word3"
],
"language2": [
"word"
]
}
This is what a .json-file looks like. It has a Object(Key) called "language" that defines that contains a list( [...] ) with the words.
To edit the words in a language object, simply change the word and don't forget about the "". If you want to add a new word, choose the language the word should be in. Then just begin a new line with a comma in the list and add your new word, also with "". Adding Languages is just one level deeper, you need to put a new Object(Key) also with comma, "" and you need to put a list there, not just a single word.
The ASCII-Hangman Game, a small but cool project