Skip to content

Commit

Permalink
Merge pull request #202 from CXIA17/branch-Error
Browse files Browse the repository at this point in the history
Branch error
  • Loading branch information
CXIA17 authored Apr 15, 2024
2 parents d53b0a3 + 1e1c379 commit 4d0f367
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/team/cxia17.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ markets and invoked uncertain events inside each of the markets.
### Documentation
Added documentation to all public methods relating to the virtual stock market feature, True&False game
feature, and asset management features.
[PR #200](https://github.com/AY2324S2-CS2113-T11-4/tp/pull/200)

### Community contribution
- Actively communicating within the group to find bugs and potential improvements to the program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ public void play() {

System.out.println("How much in USD do you want to invest in " + current.returnCryptoName() +
"? Input 0 if you want none");
System.out.println("Please input a value larger than the crypto price because you are no longer" +
" inputting quantities, you are just inputting the amount of money you want to invest in");
int response = Integer.parseInt(scanner.nextLine());
if (response == 0) {
completeTrade = true;
break;
}
if (response >= current.returnCurrentPrice() &&
playerProfile.getAsset().outputMoney() >= response) {
Expand Down

0 comments on commit 4d0f367

Please sign in to comment.