From f6e677e885602b3d6549ff6566bd37273608be9b Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Sun, 24 Dec 2023 21:34:18 +0800 Subject: [PATCH 1/3] feat: update question --- js/alexgame.js | 40 ++++++++++++++++++++-------------------- js/elizabethgame.js | 40 ++++++++++++++++++++-------------------- js/nixongame.js | 40 ++++++++++++++++++++-------------------- 3 files changed, 60 insertions(+), 60 deletions(-) diff --git a/js/alexgame.js b/js/alexgame.js index 7690a44..06cc8fd 100644 --- a/js/alexgame.js +++ b/js/alexgame.js @@ -111,30 +111,30 @@ var failedTimes = 0 // Questions list var questions = [ - "How to establish a unified system of metrics to strengthen centralised power?", - "How to formulate a reasonable tax policy to strengthen the national treasury?", - "How to organise and mobilise resources for the construction of the Great Wall to defend against foreign enemies?", - "How to enforce the policy of prohibiting private ownership of weapons?", - "How to promote a uniform writing system to strengthen cultural unity?", - "How to recruit soldiers wisely and keep the army running efficiently?", - "How to deal with political dissent arising from different ideas?", - "How to strengthen the centralised power system of the emperor?", - "How to establish and maintain an effective road transport network?", - "How to handle diplomatic relations with neighbouring countries?" + "How was Macedonian dominance in Greece consolidated?", + "How was the long-standing hostility with the Persian Empire managed?", + "how to administer and integrate a vast territory?", + "how to balance the different peoples and cultures in the army?", + "how to deal with uprisings and rebellions in conquered areas?", + "How to promote Greek culture and influence?", + "How to establish an effective administrative system in the newly conquered territories?", + "How to handle diplomatic relations with other Mediterranean powers?", + "How to maintain the economic stability and prosperity of the vast empire?", + "How to ensure royal succession and stability of power?" ]; // Answers list var answers = [ - 'roast_duck', - 'mapo', - 'Yangzhou', - 'Chicken', - 'roast_duck', - 'Yangzhou', - 'mapo', - 'mapo', - 'Prawns', - 'Yangzhou' + 'lamb', + 'yoghurt', + 'moussaka', + 'salad', + 'lamb', + 'salad', + 'moussaka', + 'cheese', + 'cheese', + 'yoghurt' ] var QAlist = Array.from(Array(questions.length).keys()); diff --git a/js/elizabethgame.js b/js/elizabethgame.js index 5b51db5..fea2088 100644 --- a/js/elizabethgame.js +++ b/js/elizabethgame.js @@ -111,30 +111,30 @@ var failedTimes = 0 // Questions list var questions = [ - "How to establish a unified system of metrics to strengthen centralised power?", - "How to formulate a reasonable tax policy to strengthen the national treasury?", - "How to organise and mobilise resources for the construction of the Great Wall to defend against foreign enemies?", - "How to enforce the policy of prohibiting private ownership of weapons?", - "How to promote a uniform writing system to strengthen cultural unity?", - "How to recruit soldiers wisely and keep the army running efficiently?", - "How to deal with political dissent arising from different ideas?", - "How to strengthen the centralised power system of the emperor?", - "How to establish and maintain an effective road transport network?", - "How to handle diplomatic relations with neighbouring countries?" + "How to deal with religious conflicts in different churches?", + "How to consolidate links with new churches, especially in the early years of the reign?", + "How to deal with the privileges of the aristocracy and balance the conflicts between social classes?", + "How to cope with tensions between Scotland and Spain, especially during the Anglo-Spanish War", + "What role should it play in the American War of Independence?", + "How to deal with the demand of the Third Estate for the convening of Congress?", + "How should the storming of the Bastille be confronted?", + "What should be the attitude towards the formulation of a new constitution?", + "How should one respond to the rise of counterrevolutionary forces?", + "How should relations with other European countries be handled in the midst of a wave of revolutions?" ]; // Answers list var answers = [ - 'roast_duck', - 'mapo', - 'Yangzhou', - 'Chicken', - 'roast_duck', - 'Yangzhou', - 'mapo', - 'mapo', - 'Prawns', - 'Yangzhou' + 'fish&chips', + 'cream_tea', + 'pudding', + 'pudding', + 'fish&chips', + 'breakfast', + 'spaghetti', + 'spaghetti', + 'breakfast', + 'cream_tea' ] var QAlist = Array.from(Array(questions.length).keys()); diff --git a/js/nixongame.js b/js/nixongame.js index 5339a3d..71c7a59 100644 --- a/js/nixongame.js +++ b/js/nixongame.js @@ -111,30 +111,30 @@ var failedTimes = 0 // Questions list var questions = [ - "How to establish a unified system of metrics to strengthen centralised power?", - "How to formulate a reasonable tax policy to strengthen the national treasury?", - "How to organise and mobilise resources for the construction of the Great Wall to defend against foreign enemies?", - "How to enforce the policy of prohibiting private ownership of weapons?", - "How to promote a uniform writing system to strengthen cultural unity?", - "How to recruit soldiers wisely and keep the army running efficiently?", - "How to deal with political dissent arising from different ideas?", - "How to strengthen the centralised power system of the emperor?", - "How to establish and maintain an effective road transport network?", - "How to handle diplomatic relations with neighbouring countries?" + "How can we ensure transparency and integrity in government?", + "How can we end the Vietnam War and ensure that needless diplomatic conflicts and wars are avoided in the future?", + "how can we improve relations with China and foster better diplomatic and trade cooperation based on respect for differences?", + "how should we manage tensions with the Soviet Union?", + "what should we do in the face of ongoing conflict and oil crises in the Middle East?", + "how will we respond to growing environmental problems?", + "In the face of recession and inflation, how will our economic policies be adjusted to restore and maintain economic stability?", + "how will the government respond to citizens' concerns about war and equal rights?", + "how can we promote nuclear weapons control and reduce nuclear threats globally?", + "how will government ensure the proper use of power, abide by the Constitution, and protect the freedoms and rights of its citizens?" ]; // Answers list var answers = [ - 'roast_duck', - 'mapo', - 'Yangzhou', - 'Chicken', - 'roast_duck', - 'Yangzhou', - 'mapo', - 'mapo', - 'Prawns', - 'Yangzhou' + 'ham', + 'hotdog', + 'applepie', + 'frychicken', + 'jiangbing', + 'ham', + 'hotdog', + 'applepie', + 'frychicken', + 'jianbing' ] var QAlist = Array.from(Array(questions.length).keys()); From 604ee009efedfc5b1431baf3b696c41b0545f092 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Sun, 24 Dec 2023 21:41:21 +0800 Subject: [PATCH 2/3] feat: rename empire --- js/nixongame.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/js/nixongame.js b/js/nixongame.js index 71c7a59..7f2c4fe 100644 --- a/js/nixongame.js +++ b/js/nixongame.js @@ -22,10 +22,10 @@ const customers = [ const RandomCustomerIndex = Math.floor(Math.random() * customers.length); -const louises = [ - '#louis img', - '#louis1 img', - '#louis2 img' +const nixones = [ + '#nixon img', + '#nixon1 img', + '#nixon2 img' ] function checkAnswer(dishName){ @@ -53,7 +53,7 @@ function handleClick(dishName) { console.log("恭喜,你选对了!"); if (currentIndex == 9){ setTimeout(function() { - window.location.href = 'louiswin.html'; + window.location.href = 'nixonwin.html'; }, 2000); }else{ @@ -61,9 +61,9 @@ function handleClick(dishName) { hideElement(customers[RandomCustomerIndex][failedTimes]); showElement(customers[RandomCustomerIndex][0]); - // louis safe - hideElement(louises[failedTimes]) - showElement(louises) + // nixon safe + hideElement(nixones[failedTimes]) + showElement(nixones) failedTimes = 0; @@ -84,8 +84,8 @@ function handleClick(dishName) { hideElement(customers[RandomCustomerIndex][0]) showElement(customers[RandomCustomerIndex][1]) - hideElement(louises[0]) - showElement(louises[1]) + hideElement(nixones[0]) + showElement(nixones[1]) break; case 2: hideElement(customers[RandomCustomerIndex][1]) @@ -93,11 +93,11 @@ function handleClick(dishName) { break; case 3: - hideElement(louises[1]) - showElement(louises[2]) + hideElement(nixones[1]) + showElement(nixones[2]) // Delay for 2 seconds before redirecting setTimeout(function() { - window.location.href = 'louislose.html'; + window.location.href = 'nixonlose.html'; }, 2000); // 这里可以添加结束游戏或其他逻辑 break; @@ -168,8 +168,8 @@ document.addEventListener("DOMContentLoaded", function() { // Show a random customer showElement(customers[RandomCustomerIndex][0]); - // Show normal louis - showElement('#louis img'); + // Show normal nixon + showElement('#nixon img'); // Show hint bottom showElement('#hint img') From 2b14cb96d95bb1497bdb81fb1de9b737f11e14d1 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Sun, 24 Dec 2023 21:54:07 +0800 Subject: [PATCH 3/3] feat: replace dishes name --- alexgame.html | 28 +++++++++--------- ...lamb_chops .png => roasted_lamb_chops.png} | Bin css/alexgame.css | 10 +++---- js/alexgame.js | 8 ++--- 4 files changed, 23 insertions(+), 23 deletions(-) rename asset/pic/alexander/{roasted_lamb_chops .png => roasted_lamb_chops.png} (100%) diff --git a/alexgame.html b/alexgame.html index 7bc150e..958d74d 100644 --- a/alexgame.html +++ b/alexgame.html @@ -72,25 +72,25 @@ -
-
+
+
+
+