add fruit words in dic
This commit is contained in:
@@ -27,10 +27,10 @@
|
|||||||
<div class="word" v-html="wordEl"></div>
|
<div class="word" v-html="wordEl"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="notification" class="notification-container" id="notification-container">
|
<div v-if="notification" class="notification-container">
|
||||||
<p>Vous avez déjà saisie cette lettre.</p>
|
<p>Vous avez déjà saisie cette lettre.</p>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="popup" class="popup-container" id="popup-container">
|
<div v-if="popup" class="popup-container">
|
||||||
<div class="popup">
|
<div class="popup">
|
||||||
<h2>{{ finalMessage }}</h2>
|
<h2>{{ finalMessage }}</h2>
|
||||||
<button id="play-button" @click="playAgain">Rejouer</button>
|
<button id="play-button" @click="playAgain">Rejouer</button>
|
||||||
@@ -46,11 +46,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import json from './dict.json'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Hangman",
|
name: "Hangman",
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
words: ['pimprenelle', 'culcul', 'milo', 'Prout'],
|
words: json['fruits'],
|
||||||
letterBox: '',
|
letterBox: '',
|
||||||
figureParts: [],
|
figureParts: [],
|
||||||
correctLetters: [],
|
correctLetters: [],
|
||||||
|
|||||||
7
resources/js/views/Games/HangMan/dict.json
Normal file
7
resources/js/views/Games/HangMan/dict.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"fruits" : [
|
||||||
|
"banane", "abricot", "pamplemousse", "clementine", "airelle", "amande", "ananas", "avocat", "cassis", "cedrat", "cerise", "chataigne", "citron", "coing", "figue", "fraise", "framboise", "grenade", "groseille", "kiwi", "litchi", "mandarine", "mangue", "marron", "melon", "merise", "mirabelle", "myrtille", "nectarine", "noissette", "noix", "olive", "orange", "pasteque", "peche", "pistache", "poire", "pomelo", "pomme", "prune", "pruneau", "raisin", "tomate", "vanille"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user