feat: update game

This commit is contained in:
2023-12-13 20:39:01 +08:00
parent 8f2d6cc1a3
commit cc388b5e56
9 changed files with 188 additions and 8 deletions

View File

@@ -55,7 +55,7 @@ function handleClick(dishName) {
console.log("恭喜,你选对了!");
if (currentIndex == 9){
setTimeout(function() {
window.location.href = 'win.html';
window.location.href = 'qinshihuangwin.html';
}, 2000);
}else{
@@ -90,7 +90,7 @@ function handleClick(dishName) {
showElement(qinshihuangs[RandomQinShiHuangIndex])
// Delay for 2 seconds before redirecting
setTimeout(function() {
window.location.href = 'lose.html';
window.location.href = 'qinshihuanglose.html';
}, 2000);
// 这里可以添加结束游戏或其他逻辑
break;