Skip to content

Commit

Permalink
Adding something from an issue
Browse files Browse the repository at this point in the history
There was a new thing for an issue but now it is done!
  • Loading branch information
Steven Copeland committed Mar 23, 2017
1 parent 7ec031c commit 33b8ab9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions JavaScript-Files/begin_round.js
Expand Up @@ -17,7 +17,7 @@
var youBuyWorkers = function() {
var ask = function() {
var max = Math.floor(me.money/20);
var askP = prompt("How many workers would you like to buy? You have " + me.money + " dollars. The most you can buy is " + max)*1;
var askP = prompt("How many workers would you like to buy? You have " + me.money + " dollars. The most you can buy is " + max, max)*1;
if (me.money - (askP * 20) < 0) {
confirm("Oops! Sorry, it looks like you don't have enough money.");
ask();
Expand All @@ -38,7 +38,7 @@
var otherPersonBuyWorkers = function() {
var ask = function() {
var max = Math.floor(other.money/20);
var askP = prompt("How many workers would you like to buy? You have " + other.money + " dollars. The most you can buy is " + max)*1;
var askP = prompt("How many workers would you like to buy? You have " + other.money + " dollars. The most you can buy is " + max, max)*1;
if (other.money - (askP * 20) < 0) {
confirm("Oops! Sorry, it looks like you don't have enough money.");
ask();
Expand All @@ -58,7 +58,7 @@
var personPersonBuyWorkers = function() {
var ask = function() {
var max = Math.floor(person.money/20);
var askP = prompt("How many workers would you like to buy? You have " + person.money + " dollars. The most you can buy is " + max)*1;
var askP = prompt("How many workers would you like to buy? You have " + person.money + " dollars. The most you can buy is " + max, max)*1;
if (person.money - (askP * 20) < 0) {
confirm("Oops! Sorry, it looks like you don't have enough money.");
ask();
Expand All @@ -78,7 +78,7 @@
var newPersonPersonBuyWorkers = function() {
var ask = function() {
var max = Math.floor(newPerson.money/20);
var askP = prompt("How many workers would you like to buy? You have " + newPerson.money + " dollars. The most you can buy is " + max)*1;
var askP = prompt("How many workers would you like to buy? You have " + newPerson.money + " dollars. The most you can buy is " + max, max)*1;
if (newPerson.money - (askP * 20) < 0) {
confirm("Oops! Sorry, it looks like you don't have enough money.");
ask();
Expand Down Expand Up @@ -238,4 +238,4 @@
}
};
checkWinner();
};
};

0 comments on commit 33b8ab9

Please sign in to comment.