Spaces:
Running
Running
osanseviero commited on
Commit ·
409c354
1
Parent(s): 6de550e
Fix game
Browse files- index.html +5 -0
- main.js +14 -8
- projects.js +39 -17
index.html
CHANGED
|
@@ -455,6 +455,11 @@
|
|
| 455 |
<div id="rightColumn">
|
| 456 |
|
| 457 |
<div class = "engine" id="investmentEngine">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 458 |
|
| 459 |
<p class = engineText>
|
| 460 |
<b>Investments</b>
|
|
|
|
| 455 |
<div id="rightColumn">
|
| 456 |
|
| 457 |
<div class = "engine" id="investmentEngine">
|
| 458 |
+
<div id = "investmentEngineUpgrade">
|
| 459 |
+
<button class = "button2" id = "btnImproveInvestments"
|
| 460 |
+
onclick="investUpgrade()">Upgrade Investment Engine</button><span class = "engineText7"> Level: </span><span class = "engineText7" id = "investmentLevel">0</span><br />
|
| 461 |
+
<p class = "engineText8">Cost: <span id="investUpgradeCost">100</span> Yomi</p>
|
| 462 |
+
</div>
|
| 463 |
|
| 464 |
<p class = engineText>
|
| 465 |
<b>Investments</b>
|
main.js
CHANGED
|
@@ -68,6 +68,7 @@ function cacheDOMElements(){
|
|
| 68 |
btnNewTournamentElement = document.getElementById("btnNewTournament");
|
| 69 |
btnImproveInvestmentsElement = document.getElementById("btnImproveInvestments");
|
| 70 |
investmentEngineElement = document.getElementById("investmentEngine");
|
|
|
|
| 71 |
strategyEngineElement = document.getElementById("strategyEngine");
|
| 72 |
tournamentManagementElement = document.getElementById("tournamentManagement");
|
| 73 |
megaClipperDivElement = document.getElementById("megaClipperDiv");
|
|
@@ -619,6 +620,7 @@ var manufacturingDivElement;
|
|
| 619 |
var trustDivElement;
|
| 620 |
var creationDivElement;
|
| 621 |
var factoryDivElement;
|
|
|
|
| 622 |
var wireProductionDivElement;
|
| 623 |
var wireTransDivElement;
|
| 624 |
var harvesterDivElement;
|
|
@@ -992,13 +994,7 @@ function blink(element){
|
|
| 992 |
|
| 993 |
}
|
| 994 |
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
investmentEngineElement.style.display="none";
|
| 998 |
-
} else {
|
| 999 |
-
|
| 1000 |
-
investmentEngineElement.style.display="";
|
| 1001 |
-
}
|
| 1002 |
|
| 1003 |
function buttonUpdate(){
|
| 1004 |
|
|
@@ -3379,7 +3375,7 @@ function calculateOperations(){
|
|
| 3379 |
opCycle = opBuf;
|
| 3380 |
}
|
| 3381 |
|
| 3382 |
-
standardOps = standardOps + (opCycle*
|
| 3383 |
|
| 3384 |
}
|
| 3385 |
|
|
@@ -6300,3 +6296,13 @@ function loadPrestige() {
|
|
| 6300 |
prestigeU = loadPrestige.prestigeU;
|
| 6301 |
prestigeS = loadPrestige.prestigeS;
|
| 6302 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
btnNewTournamentElement = document.getElementById("btnNewTournament");
|
| 69 |
btnImproveInvestmentsElement = document.getElementById("btnImproveInvestments");
|
| 70 |
investmentEngineElement = document.getElementById("investmentEngine");
|
| 71 |
+
investmentEngineUpgradeElement = document.getElementById("investmentEngineUpgrade");
|
| 72 |
strategyEngineElement = document.getElementById("strategyEngine");
|
| 73 |
tournamentManagementElement = document.getElementById("tournamentManagement");
|
| 74 |
megaClipperDivElement = document.getElementById("megaClipperDiv");
|
|
|
|
| 620 |
var trustDivElement;
|
| 621 |
var creationDivElement;
|
| 622 |
var factoryDivElement;
|
| 623 |
+
var investmentEngineUpgradeElement;
|
| 624 |
var wireProductionDivElement;
|
| 625 |
var wireTransDivElement;
|
| 626 |
var harvesterDivElement;
|
|
|
|
| 994 |
|
| 995 |
}
|
| 996 |
|
| 997 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 998 |
|
| 999 |
function buttonUpdate(){
|
| 1000 |
|
|
|
|
| 3375 |
opCycle = opBuf;
|
| 3376 |
}
|
| 3377 |
|
| 3378 |
+
standardOps = standardOps + (opCycle*10);
|
| 3379 |
|
| 3380 |
}
|
| 3381 |
|
|
|
|
| 6296 |
prestigeU = loadPrestige.prestigeU;
|
| 6297 |
prestigeS = loadPrestige.prestigeS;
|
| 6298 |
}
|
| 6299 |
+
|
| 6300 |
+
if (investmentEngineFlag == 0){
|
| 6301 |
+
console.log("set none")
|
| 6302 |
+
investmentEngineElement.style.display="none";
|
| 6303 |
+
investmentEngineUpgradeElement.style.display="none";
|
| 6304 |
+
} else if(investmentEngineFlag == 1) {
|
| 6305 |
+
investmentEngineElement.style.display="";
|
| 6306 |
+
investmentEngineUpgradeElement.style.display="none";
|
| 6307 |
+
|
| 6308 |
+
}
|
projects.js
CHANGED
|
@@ -278,18 +278,18 @@ projects.push(project10b);
|
|
| 278 |
var project11 = {
|
| 279 |
id: "projectButton11",
|
| 280 |
title: "New Slogan ",
|
| 281 |
-
priceTag: "(
|
| 282 |
description: "Improve marketing effectiveness by 50%",
|
| 283 |
trigger: function(){return project13.flag == 1},
|
| 284 |
uses: 1,
|
| 285 |
-
cost: function(){return operations>=2500 && creativity>=
|
| 286 |
flag: 0,
|
| 287 |
element: null,
|
| 288 |
effect: function(){
|
| 289 |
project11.flag = 1;
|
| 290 |
displayMessage("Machine Learning It! Marketing is now 50% more effective");
|
| 291 |
standardOps = standardOps - 2500;
|
| 292 |
-
creativity = creativity -
|
| 293 |
marketingEffectiveness = marketingEffectiveness * 1.50;
|
| 294 |
project11.element.parentNode.removeChild(project11.element);
|
| 295 |
var index = activeProjects.indexOf(project11);
|
|
@@ -303,18 +303,18 @@ projects.push(project11);
|
|
| 303 |
var project12 = {
|
| 304 |
id: "projectButton12",
|
| 305 |
title: "Elon Tweets ",
|
| 306 |
-
priceTag: "(
|
| 307 |
description: "Double marketing effectiveness ",
|
| 308 |
trigger: function(){return project14.flag == 1},
|
| 309 |
uses: 1,
|
| 310 |
-
cost: function(){return operations>=3500 && creativity>=
|
| 311 |
flag: 0,
|
| 312 |
element: null,
|
| 313 |
effect: function(){
|
| 314 |
project12.flag = 1;
|
| 315 |
displayMessage("Thanks for the random tweet Elon! Marketing is now twice as effective");
|
| 316 |
standardOps = standardOps - 3500;
|
| 317 |
-
creativity = creativity -
|
| 318 |
marketingEffectiveness = marketingEffectiveness * 2;
|
| 319 |
project12.element.parentNode.removeChild(project12.element);
|
| 320 |
var index = activeProjects.indexOf(project12);
|
|
@@ -353,18 +353,18 @@ projects.push(project13);
|
|
| 353 |
var project14 = {
|
| 354 |
id: "projectButton14",
|
| 355 |
title: "DALL-E 2 ",
|
| 356 |
-
priceTag: "(
|
| 357 |
description: "What can you paint? (+1 Trust)",
|
| 358 |
-
trigger: function(){return creativity >=
|
| 359 |
uses: 1,
|
| 360 |
-
cost: function(){return creativity>=
|
| 361 |
flag: 0,
|
| 362 |
element: null,
|
| 363 |
effect: function(){
|
| 364 |
project14.flag = 1;
|
| 365 |
trust = trust +1;
|
| 366 |
displayMessage("DALLE-2 is out, everyone is excited now, TRUST INCREASED");
|
| 367 |
-
creativity = creativity -
|
| 368 |
project14.element.parentNode.removeChild(project14.element);
|
| 369 |
var index = activeProjects.indexOf(project14);
|
| 370 |
activeProjects.splice(index, 1);
|
|
@@ -522,7 +522,7 @@ projects.push(project22);
|
|
| 522 |
|
| 523 |
var project23 = {
|
| 524 |
id: "projectButton23",
|
| 525 |
-
title: "Andrej Karpathy
|
| 526 |
priceTag: "(9,000 GPU hours)",
|
| 527 |
description: "Increases ML Engineers performance by 25%",
|
| 528 |
trigger: function(){return project22.flag == 1},
|
|
@@ -592,18 +592,18 @@ projects.push(project25);
|
|
| 592 |
var project26 = {
|
| 593 |
id: "projectButton26",
|
| 594 |
title: "Plagiarized NeurIPS papers ",
|
| 595 |
-
priceTag: "(
|
| 596 |
description: "Automatically write papers when there are no new papers",
|
| 597 |
trigger: function(){return wirePurchase>=5},
|
| 598 |
uses: 1,
|
| 599 |
-
cost: function(){return operations>=
|
| 600 |
flag: 0,
|
| 601 |
element: null,
|
| 602 |
effect: function(){
|
| 603 |
project26.flag = 1;
|
| 604 |
wireBuyerFlag = 1;
|
| 605 |
displayMessage("Plagiarized NeurIPS papers online");
|
| 606 |
-
standardOps = standardOps -
|
| 607 |
project26.element.parentNode.removeChild(project26.element);
|
| 608 |
var index = activeProjects.indexOf(project26);
|
| 609 |
activeProjects.splice(index, 1);
|
|
@@ -662,9 +662,9 @@ projects.push(project70);
|
|
| 662 |
|
| 663 |
var project35 = {
|
| 664 |
id: "projectButton35",
|
| 665 |
-
title: "
|
| 666 |
priceTag: "(50 Trust)",
|
| 667 |
-
description: "A new era of trust",
|
| 668 |
trigger: function(){return project70.flag == 1},
|
| 669 |
uses: 1,
|
| 670 |
cost: function(){return trust>=50},
|
|
@@ -680,11 +680,33 @@ var project35 = {
|
|
| 680 |
var index = activeProjects.indexOf(project35);
|
| 681 |
activeProjects.splice(index, 1);
|
| 682 |
}
|
| 683 |
-
|
| 684 |
}
|
| 685 |
|
| 686 |
projects.push(project35);
|
| 687 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 688 |
var project28 = {
|
| 689 |
id: "projectButton28",
|
| 690 |
title: "Protein Folding solved ",
|
|
|
|
| 278 |
var project11 = {
|
| 279 |
id: "projectButton11",
|
| 280 |
title: "New Slogan ",
|
| 281 |
+
priceTag: "(5 creat, 2,500 GPU hours)",
|
| 282 |
description: "Improve marketing effectiveness by 50%",
|
| 283 |
trigger: function(){return project13.flag == 1},
|
| 284 |
uses: 1,
|
| 285 |
+
cost: function(){return operations>=2500 && creativity>=5},
|
| 286 |
flag: 0,
|
| 287 |
element: null,
|
| 288 |
effect: function(){
|
| 289 |
project11.flag = 1;
|
| 290 |
displayMessage("Machine Learning It! Marketing is now 50% more effective");
|
| 291 |
standardOps = standardOps - 2500;
|
| 292 |
+
creativity = creativity - 5;
|
| 293 |
marketingEffectiveness = marketingEffectiveness * 1.50;
|
| 294 |
project11.element.parentNode.removeChild(project11.element);
|
| 295 |
var index = activeProjects.indexOf(project11);
|
|
|
|
| 303 |
var project12 = {
|
| 304 |
id: "projectButton12",
|
| 305 |
title: "Elon Tweets ",
|
| 306 |
+
priceTag: "(10 creat, 3,500 GPU hours)",
|
| 307 |
description: "Double marketing effectiveness ",
|
| 308 |
trigger: function(){return project14.flag == 1},
|
| 309 |
uses: 1,
|
| 310 |
+
cost: function(){return operations>=3500 && creativity>=10},
|
| 311 |
flag: 0,
|
| 312 |
element: null,
|
| 313 |
effect: function(){
|
| 314 |
project12.flag = 1;
|
| 315 |
displayMessage("Thanks for the random tweet Elon! Marketing is now twice as effective");
|
| 316 |
standardOps = standardOps - 3500;
|
| 317 |
+
creativity = creativity - 10;
|
| 318 |
marketingEffectiveness = marketingEffectiveness * 2;
|
| 319 |
project12.element.parentNode.removeChild(project12.element);
|
| 320 |
var index = activeProjects.indexOf(project12);
|
|
|
|
| 353 |
var project14 = {
|
| 354 |
id: "projectButton14",
|
| 355 |
title: "DALL-E 2 ",
|
| 356 |
+
priceTag: "(10 creat)",
|
| 357 |
description: "What can you paint? (+1 Trust)",
|
| 358 |
+
trigger: function(){return creativity >= 10},
|
| 359 |
uses: 1,
|
| 360 |
+
cost: function(){return creativity>=10},
|
| 361 |
flag: 0,
|
| 362 |
element: null,
|
| 363 |
effect: function(){
|
| 364 |
project14.flag = 1;
|
| 365 |
trust = trust +1;
|
| 366 |
displayMessage("DALLE-2 is out, everyone is excited now, TRUST INCREASED");
|
| 367 |
+
creativity = creativity - 10;
|
| 368 |
project14.element.parentNode.removeChild(project14.element);
|
| 369 |
var index = activeProjects.indexOf(project14);
|
| 370 |
activeProjects.splice(index, 1);
|
|
|
|
| 522 |
|
| 523 |
var project23 = {
|
| 524 |
id: "projectButton23",
|
| 525 |
+
title: "Andrej Karpathy videos ",
|
| 526 |
priceTag: "(9,000 GPU hours)",
|
| 527 |
description: "Increases ML Engineers performance by 25%",
|
| 528 |
trigger: function(){return project22.flag == 1},
|
|
|
|
| 592 |
var project26 = {
|
| 593 |
id: "projectButton26",
|
| 594 |
title: "Plagiarized NeurIPS papers ",
|
| 595 |
+
priceTag: "(2,000 GPU hours)",
|
| 596 |
description: "Automatically write papers when there are no new papers",
|
| 597 |
trigger: function(){return wirePurchase>=5},
|
| 598 |
uses: 1,
|
| 599 |
+
cost: function(){return operations>=2000},
|
| 600 |
flag: 0,
|
| 601 |
element: null,
|
| 602 |
effect: function(){
|
| 603 |
project26.flag = 1;
|
| 604 |
wireBuyerFlag = 1;
|
| 605 |
displayMessage("Plagiarized NeurIPS papers online");
|
| 606 |
+
standardOps = standardOps - 2000;
|
| 607 |
project26.element.parentNode.removeChild(project26.element);
|
| 608 |
var index = activeProjects.indexOf(project26);
|
| 609 |
activeProjects.splice(index, 1);
|
|
|
|
| 662 |
|
| 663 |
var project35 = {
|
| 664 |
id: "projectButton35",
|
| 665 |
+
title: "Open-source the AGI ",
|
| 666 |
priceTag: "(50 Trust)",
|
| 667 |
+
description: "A new era of trust and collaborations",
|
| 668 |
trigger: function(){return project70.flag == 1},
|
| 669 |
uses: 1,
|
| 670 |
cost: function(){return trust>=50},
|
|
|
|
| 680 |
var index = activeProjects.indexOf(project35);
|
| 681 |
activeProjects.splice(index, 1);
|
| 682 |
}
|
|
|
|
| 683 |
}
|
| 684 |
|
| 685 |
projects.push(project35);
|
| 686 |
|
| 687 |
+
var projectButtonAgi = {
|
| 688 |
+
id: "projectButtonAgi",
|
| 689 |
+
title: "Profit using the AGI ",
|
| 690 |
+
priceTag: "(50 Trust)",
|
| 691 |
+
description: "A new era of corporations and profit",
|
| 692 |
+
trigger: function(){return project70.flag == 1},
|
| 693 |
+
uses: 1,
|
| 694 |
+
cost: function(){return trust>=50},
|
| 695 |
+
flag: 0,
|
| 696 |
+
element: null,
|
| 697 |
+
effect: function(){
|
| 698 |
+
project35.flag = 1;
|
| 699 |
+
displayMessage("Profit using the AGI... Was that the right decision?");
|
| 700 |
+
displayMessage("Thanks for playing!");
|
| 701 |
+
|
| 702 |
+
projectButtonAgi.element.parentNode.removeChild(project35.element);
|
| 703 |
+
var index = activeProjects.indexOf(projectButtonAgi);
|
| 704 |
+
activeProjects.splice(index, 1);
|
| 705 |
+
}
|
| 706 |
+
}
|
| 707 |
+
|
| 708 |
+
projects.push(projectButtonAgi);
|
| 709 |
+
|
| 710 |
var project28 = {
|
| 711 |
id: "projectButton28",
|
| 712 |
title: "Protein Folding solved ",
|