let rs = require('readline-sync')
let words = 'apple banana orange'
let words_arr = words.split(' ')
// console.log(words_arr);
let r_idx = Math.floor(Math.random() * words_arr.length)
let select_word = words_arr[r_idx]
// console.log(select_word);
let true_arr = select_word.split('')
// console.log(true_arr);
let char_arr = new Array(select_word.length)
char_arr.fill('-')
console.log(char_arr);
let guess_times = 5
while(guess_times > 0){
let guess_char = rs.question('input one char\n')
let b_find = false
for(let i = 0
猜单词游戏(JavaScript及vue版)
于 2024-05-07 17:18:21 首次发布

最低0.47元/天 解锁文章
909

被折叠的 条评论
为什么被折叠?



