Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

so i wnated some of the players scores to be a little lower so that they can reach the level 3-4 rank depending on their

so i wnated some of the players scores to be a little lower so that they can reach the level 3-4 rank depending on their scores . Is there anyway to change the equation? or anyway to make it organized ? Java image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Player.java X Game.java gameDriver.java 47e public void play() 48 49 int loopPick = (int) ((Math.random() * (10 - 5)) + 5); 50 while(loopPick 10) 51 { 52 LoopPick = (int) ((Math.random() * (10 - 5)) + 5); 53 } 54 55 for(int i = 0; i 10) 59 { 60 pick = (int) ((Math.random() * (10 - 5)) + 5); 61 62 setScore(getScore() + pick); 1 63 3 public String decideRank String r = if(getScore() >= 50) r = "Level 1"; else if(getScore() >= 35 && getScore() = 20 && getScore() 10) 51 mmm * (10 - 5)) + 5); 1 Player.java X Game.java gameDriver.java 47e public void play() 48 { 49 int loopPick = (int) ((Math.random() * (10 - 5)) + 5); 58 while(loopPick 10) 51 { 52 loopPick = (int) ((Math.random() * (10 - 5)) + 5); 53 } 54 55 for(int i = 0; i 10) 59 60 pick = (int) ((Math.random() * (10 - 5)) + 5); 61 62 setScore(getScore() + pick); 63 64 } public String decideRank() { String r = ""; if (getScore() >= 50) r = "Level 1"; else if (getScore() >= 35 && getScore() = 20 && getScore() max) { max = player[i].getScore(): index=1 42 43 44 45 46 return player(indexl; 48 49 50

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions