diff --git a/Backup/JavaScript-Files/Dice.js b/Backup/JavaScript-Files/Dice.js deleted file mode 100644 index e49eca0..0000000 --- a/Backup/JavaScript-Files/Dice.js +++ /dev/null @@ -1,3 +0,0 @@ -var rollDice = function() { - return Math.floor(Math.random()*6); -}; diff --git a/Backup/JavaScript-Files/begin_round1.js b/Backup/JavaScript-Files/begin_round1.js deleted file mode 100644 index 92fa308..0000000 --- a/Backup/JavaScript-Files/begin_round1.js +++ /dev/null @@ -1,18 +0,0 @@ -var beginRoundWith1 = function() { - checkWinner(me, ai1, ai2, ai3, "NO", "NO", "NO"); - getMoneyM(me); - getMoneyM(ai1); - getMoneyM(ai2); - getMoneyM(ai3); - getMoneyM(""); - getMoneyM(""); - getMoneyM(""); - buyWorkers(me); - buyWorkers(""); - buyWorkers(""); - buyWorkers(""); - buyWorkersComputer(ai1); - buyWorkersComputer(ai2); - buyWorkersComputer(ai3); - taxPayer(me, ai1, ai2, ai3, "", "", ""); -}; diff --git a/Backup/JavaScript-Files/begin_round2.js b/Backup/JavaScript-Files/begin_round2.js deleted file mode 100644 index 0599d2c..0000000 --- a/Backup/JavaScript-Files/begin_round2.js +++ /dev/null @@ -1,17 +0,0 @@ -var beginRoundWith2 = function() { - checkWinner(me, person, ai2, ai3, "NO", "NO", "NO"); - getMoneyM(me); - getMoneyM(person); - getMoneyM(ai2); - getMoneyM(ai3); - getMoneyM(""); - getMoneyM(""); - getMoneyM(""); - buyWorkers(me); - buyWorkers(person); - buyWorkers(""); - buyWorkers(""); - buyWorkersComputer(ai2); - buyWorkersComputer(ai3); - taxPayer(me, person, ai2, ai3, "", "", ""); -}; diff --git a/Backup/JavaScript-Files/begin_round3.js b/Backup/JavaScript-Files/begin_round3.js deleted file mode 100644 index 27d5349..0000000 --- a/Backup/JavaScript-Files/begin_round3.js +++ /dev/null @@ -1,16 +0,0 @@ -var beginRoundWith3 = function() { - checkWinner(me, person, other, ai3, "NO", "NO", "NO"); - getMoneyM(me); - getMoneyM(person); - getMoneyM(other); - getMoneyM(ai3); - getMoneyM(""); - getMoneyM(""); - getMoneyM(""); - buyWorkers(me); - buyWorkers(person); - buyWorkers(other); - buyWorkers(""); - buyWorkersComputer(ai3); - taxPayer(me, person, other, ai3, "", "", ""); -}; diff --git a/Backup/JavaScript-Files/checkWinner.js b/Backup/JavaScript-Files/checkWinner.js deleted file mode 100644 index 1778990..0000000 --- a/Backup/JavaScript-Files/checkWinner.js +++ /dev/null @@ -1,74 +0,0 @@ -var checkWinner = function(person1, person2, person3, person4, person5, person6, person7) { - var list = []; - var cMoney = function(pl) { - if (pl.money > 500000) { - list.push(pl); - } - }; - cMoney(person1); - cMoney(person2); - cMoney(person3); - cMoney(person4); - cMoney(person5); - cMoney(person6); - cMoney(person7); - if (list.length === 1) { - person1 = list[0]; - beginRound = function() { - confirm(winner1.name + " won with " + person1.money + "!"); - }; - beginRound(); - } else if (list.length === 2) { - person1 = list[0]; - person2 = list[1]; - beginRound = function() { - confirm(person1.name + " and " + person2.name + " both won with over 500,000!"); - }; - beginRound(); - } else if (list.length === 3) { - person1 = list[0]; - person2 = list[1]; - person3 = list[2]; - person4 = list[3]; - beginRound = function() { - confirm(person1.name + ", " + person2.name + ", and " + person3.name + " won with over 500,000!"); - }; - beginRound(); - }else if(list.length === 4) { - person1 = list[0]; - person2 = list[1]; - person3 = list[2]; - person4 = list[3]; - winner5 = list[4]; - beginRound = function() { - confirm(winner1.name + ", " + winner2.name + ", " + winner3.name + ", and " + winner4.name +" won with over 500,000!"); - }; - beginRound(); - }else if(list.length === 5) { - person1 = list[0]; - person2 = list[1]; - person3 = list[2]; - person4 = list[3]; - person5 = list[4]; - beginRound = function() { - confirm(person1.name + ", " + person2.name + ", " + person3.name + ", " + person4.name + ", and " + person5.name + " won with over 500,000!"); - }; - beginRound(); - }else if(list.length === 6) { - person1 = list[0]; - person2 = list[1]; - person3 = list[2]; - person4 = list[3]; - person5 = list[4]; - person6 = list[5]; - beginRound = function() { - confirm(person1.name + ", " + person2.name + ", " + person3.name + ", " + person4.name + ", " + person5.name + ", and " + person6.name + " won with over 500,000!"); - }; - beginRound(); - } else if (list.length === 7) { - beginRound = function() { - confirm("Everybody won with over 500,000!"); - }; - beginRound(); - } -} diff --git a/Backup/JavaScript-Files/getMoney.js b/Backup/JavaScript-Files/getMoney.js deleted file mode 100644 index a02c95f..0000000 --- a/Backup/JavaScript-Files/getMoney.js +++ /dev/null @@ -1,17 +0,0 @@ -var getMoneyW = function(p) { - pValue = p.workers * 5 + 5; - money = rollDice() * pValue; - p.money += money; -}; - -var getMoneyM = function(pl) { - for(var i = 0; i < 7; i++) { - getMoneyW(pl); - } - if (pl === me) { - confirm(pl.name + " have " + pl.money + " dollars"); - } else { - confirm(pl.name + " has " + pl.money + " dollars"); - } - pl.workers = 0; -}; diff --git a/Backup/JavaScript-Files/getWorkers.js b/Backup/JavaScript-Files/getWorkers.js deleted file mode 100644 index aa2102d..0000000 --- a/Backup/JavaScript-Files/getWorkers.js +++ /dev/null @@ -1,22 +0,0 @@ -var buyWorkers = function(person1, person2, person3, person4) { - var ask = function(exPerson) { - var max = Math.floor(exPerson.money/20); - var askP = prompt("How many workers would you like to buy? You have " + exPerson.money + " dollars. The most you can buy is " + max, max)*1; - if (exPerson.money - (askP * 20) < 0) { - confirm("Oops! Sorry, it looks like you don't have enough money."); - ask(); - }else if(isNaN(askP)) { - alert("Sorry! That is not a number!"); - ask(); - } else { - var cost = askP*20; - exPerson.workers += askP; - exPerson.money -= cost; - confirm("You bought " + exPerson.workers + " workers"); - } - }; - ask(person1); - ask(person2); - ask(person3); - ask(person4); -}; diff --git a/Backup/JavaScript-Files/getWorkersComputer.js b/Backup/JavaScript-Files/getWorkersComputer.js deleted file mode 100644 index 9df561b..0000000 --- a/Backup/JavaScript-Files/getWorkersComputer.js +++ /dev/null @@ -1,9 +0,0 @@ -var buyWorkersComputer = function(ai) { - if (Math.floor((ai.money - 5)/21) > 0) { - var toBuy = Math.floor((ai.money - 10)/20); - var cost = toBuy * 20; - ai.workers += toBuy; - ai.money -= cost; - } - confirm(ai.name + " bought " + ai.workers + " workers"); -}; diff --git a/Backup/JavaScript-Files/howManyPlayers.js b/Backup/JavaScript-Files/howManyPlayers.js deleted file mode 100644 index 5287459..0000000 --- a/Backup/JavaScript-Files/howManyPlayers.js +++ /dev/null @@ -1,19 +0,0 @@ -var howManyPlayers = function() { - var howManyPlayersWanted = prompt("How many players would you like(you can only have 2-4 players)? Remeber that you have to write the digit name like this: 2 or like this: two"); - if(howManyPlayersWanted === "2" || howManyPlayersWanted === "two") { - while(me.money < 500000 || other.money < 500000 || ai1.money < 500000 || ai2.money < 500000 || ai3.money < 500000) { - beginRoundWith1(); - } - }else if(howManyPlayersWanted === "3" || howManyPlayersWanted === "three") { - while(me.money < 500000 || other.money < 500000 || person.money < 500000 || ai2.money < 500000 || ai3.money < 500000) { - beginRoundWith2(); - } - }else if(howManyPlayersWanted === "4" || howManyPlayersWanted === "four") { - while(me.money < 500000 || other.money < 500000 || newPerson.money < 500000 || person.money < 500000 || ai3.money < 500000) { - beginRoundWith3(); - } - }else{ - alert("Sorry! That number of player is not 2, 3, or 4. Remember you have to write the digit like: 2 or like: two."); - howManyPlayers(); - } -}; diff --git a/Backup/JavaScript-Files/jQuery.js b/Backup/JavaScript-Files/jQuery.js deleted file mode 100644 index a31e287..0000000 --- a/Backup/JavaScript-Files/jQuery.js +++ /dev/null @@ -1,25 +0,0 @@ -$(document).ready(function() { - $(".rules").hide(); - $(".game").hide(); - $(".ruleButton").click(function() { - $(".homePage").fadeOut(1000); - $(".rules").fadeIn(1000); - }); - - $(".back").click(function() { - $(".rules").fadeOut(1000); - $(".game").fadeOut(1000); - $(".homePage").fadeIn(1000); - }); - $(".gameButton").click(function() { - $(".homePage").fadeOut(1000); - $(".game").fadeIn(1000); - }); - $(".hide").click(function() { - $(".hide, .back").fadeOut(1000); - }); - $(".goTGame").click(function() { - $(".rules").fadeOut(1000); - $(".game").fadeIn(1000); - }); -}); diff --git a/Backup/JavaScript-Files/main.js b/Backup/JavaScript-Files/main.js deleted file mode 100644 index 25883a2..0000000 --- a/Backup/JavaScript-Files/main.js +++ /dev/null @@ -1,18 +0,0 @@ -function player(name) { - this.money = 15, - this.properties = 1, - this.workers = 0, - this.name = name; - //this.shares = 5 -} - -var me = new player("You"); -var other = new player("Person 2"); -var person = new player("Person 3"); -var newPerson = new player("Person 4"); -var ai1 = new player("AI1"); -var ai2 = new player("AI2"); -var ai3 = new player("AI3"); - - -var winner; diff --git a/Backup/JavaScript-Files/max_money.js b/Backup/JavaScript-Files/max_money.js deleted file mode 100644 index 8ae4853..0000000 --- a/Backup/JavaScript-Files/max_money.js +++ /dev/null @@ -1,17 +0,0 @@ -var max_money = function() { - if(ai1.money > ai2.money && ai1.money > ai3.money && ai1.money > me.money && ai1.money > other.money && ai1.money > person.money) { - confirm("Ai1 is in the lead with $" + ai1.money); - }else if(me.money > ai2.money && me.money > ai3.money && me.money > ai1.money && me.money > other.money && me.money > person.money) { - confirm("You are in the lead with $" + me.money); - }else if(ai2.money > ai1.money && ai2.money > ai3.money && ai2.money > me.money && ai2.money > other.money && ai2.money > person.money) { - confirm("Ai2 is in the lead with $" + ai2.money); - }else if(ai3.money > ai2.money && ai3.money > me.money && ai3.money > ai1.money && ai3.money > other.money && ai3.money > person.money) { - confirm("Ai3 is in the lead with $" + ai3.money); - }else if(other.money > ai2.money && other.money > me.money && other.money > ai1.money && other.money > ai3.money && other.money > person.money) { - confirm("Person 2 is in the lead with $" + other.money); - }else if(person.money > ai2.money && person.money > me.money && person.money > ai1.money && person.money > ai3.money && person.money > other.money) { - confirm("Person 3 is in the lead with $" + person.money); - }else{ - confirm("It is a tie between some(or all) of the leading players!"); - } -}; \ No newline at end of file diff --git a/Backup/JavaScript-Files/money_to_earn.js b/Backup/JavaScript-Files/money_to_earn.js deleted file mode 100644 index 3673ffa..0000000 --- a/Backup/JavaScript-Files/money_to_earn.js +++ /dev/null @@ -1,4 +0,0 @@ -var money_to_earn = function() { - var money_left_to_earn = 500000 - me.money; - alert("$" + money_left_to_earn + " left to earn"); -}; \ No newline at end of file diff --git a/Backup/JavaScript-Files/taxPayer.js b/Backup/JavaScript-Files/taxPayer.js deleted file mode 100644 index 3405fb1..0000000 --- a/Backup/JavaScript-Files/taxPayer.js +++ /dev/null @@ -1,18 +0,0 @@ -var round = 0; - -var taxPayer = function(person1, person2, person3, person4, person5, person6, person7) { - round += 1; - var roundsLeftUntilTaxDay = 6 - round; - alert("The round is round " + round + " which means you have " + roundsLeftUntilTaxDay + " days until taxday."); - if(round === 6) { - alert("Tax day: Everybody loses 10% of their money."); - person1.money *= 0.90; - person2.money *= 0.90; - person3.money *= 0.90; - person4.money *= 0.90; - person5.money *= 0.90; - person6.money *= 0.90; - person7.money *= 0.90; - round = 0; - } -}; diff --git a/Backup/JavaScript-Files/upgrades.js b/Backup/JavaScript-Files/upgrades.js deleted file mode 100644 index 850528b..0000000 --- a/Backup/JavaScript-Files/upgrades.js +++ /dev/null @@ -1,35 +0,0 @@ -// code examples for all upgrades -/* -function player(name) { - this.money = 15, - this.name = name, - this.shares = 5, - this.worker = 0, - this.employee = 0; -} - -var me = new player("Bob"); -var player2 = new player("Sam"); - - -Example: -var buy = function(person) { - var buying = prompt("How many workers would you like to buy?"); - var buying = function() { - person.money -= buying * 20 - } -} - - -var upgrades = function() { - if(me.money <= 100) { - var buy = prompt("You can buy some workers! How many would you like to buy?"); - if(buy <= 0) { - alert("Its okay if you don't want buy any!"); - }else if(buy >= 1) { - var spent = buy; - me.worker += spent; - } - } -}; -*/ diff --git a/Backup/debug.log b/Backup/debug.log deleted file mode 100644 index f35bae8..0000000 --- a/Backup/debug.log +++ /dev/null @@ -1,2 +0,0 @@ -[0321/162254.852:ERROR:exception_handler_server.cc(524)] ConnectNamedPipe: The pipe is being closed. (0xE8) -[0321/162806.398:ERROR:exception_handler_server.cc(524)] ConnectNamedPipe: The pipe is being closed. (0xE8) diff --git a/Backup/index.html b/Backup/index.html deleted file mode 100644 index df3c9d7..0000000 --- a/Backup/index.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - Stores Game - - - - - - - - - - - - - - - - - - -
-

Stores

-

Made by the combined effort of GoRedbirds and Steven.copeland

-
Rules
-
Play Game
-
-
- - - - - - - - - - - - - - - - - - -
A12F
BStoresE
C34D
-

- - -

-
Back
-
Hide back button
-
-

You and three other nefarious business-men with expensive suits are racing to be the first to own $500,000

- -
- Credits -
JavaScript: GoRedbirds
-
CSS: GoRedBirds
-
HTML: GoRedBirds
-
JS(redone): Steven.Copeland
-
CSS(redone): Steven.Copeland
-
HTML(redone): Steven.Copeland
-
jQuery effects: Steven.Copeland
-
-
Back
-
Play Game!
-
-
- - diff --git a/Backup/style.css b/Backup/style.css deleted file mode 100644 index c1da294..0000000 --- a/Backup/style.css +++ /dev/null @@ -1,67 +0,0 @@ -td { - height: 50px; - width: 50px; - border:1px solid black; - text-align: center; -} - -table { - margin: auto; - background-color:white; -} - -p { - text-align: center; -} - -.title { - text-align: center; - font-size: 50px; -} - -#button { - height: 10%; - width: 30%; - border: solid 1.5px; - border-radius:20%; - text-align: center; - float: left; - margin: 9%; - background: red; - font-size: 20px; -} - -.back { - margin: auto; -} - -.credits { - text-align: center; -} - -body { - background-image:url(http://www.newdesignfile.com/postpic/2016/05/vector-store-icon_398749.jpg); - background-size: 100%; -} - -h6, summary { - color:red; -} - -.owners { - text-align:center; -} -span { - color: blue; - font-style:italic; - font-weight:bold; -} - -.meter { - margin:auto; -} - -a { - color:blue; - text-decoration:none; -} diff --git a/Backup/test.js b/Backup/test.js deleted file mode 100644 index 7fc494e..0000000 --- a/Backup/test.js +++ /dev/null @@ -1,4 +0,0 @@ -var test = function() { - var hello = prompt("What is your name?"); - alert("Hello! " + hello + " mucho gusto(meaning: Nice to meet you)."); -} \ No newline at end of file