This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
todo-list-app/ | |
├── src/ | |
│ ├── main/ | |
│ │ ├── java/ | |
│ │ │ ├── com.example.todolist/ | |
│ │ │ │ ├── controller/ | |
│ │ │ │ │ ├── TodoController.java | |
│ │ │ │ ├── model/ | |
│ │ │ │ │ ├── Todo.java | |
│ │ │ │ ├── repository/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let wordList = ["apple", "horse", "music", "pintu", "water", "pizza"]; | |
let randomIndex = Math.floor(Math.random() * wordList.length); | |
let secret = wordList[randomIndex]; | |
let history = []; | |
let currentAttempt = ""; | |
let counter = 0; | |
let grid = document.getElementById("grid"); | |
buildGrid(); |