Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

looking to fix the map output and the error message loop (output in red box in photo 1). Red box output should look like photo

looking to fix the map output and the error message loop (output in red box in photo 1). Red box output should look like photo 2.

Code was too long to upload to question. Please see link.

My Code:

http://txt.do/18ury

from line 204 is where the map output starts ( //Play Game)

My output:

image text in transcribed

Output Suppose to be:

image text in transcribed

====== SURVIVAL! Enter player symbol: @ # of Cures: 0 Please enter from 2 - 10! # of Cures: 11 Please enter from 2 - 10! # of Cures: 3 Set length of Map (5 multiple from 15-35): 9 5 multiple from 15-35!!! Set length of Map (5 multiple from 15-35): 41 5 multiple from 15-35!!! Set length of Map (5 multiple from 15-35): 19 5 multiple from 15-35!!! Set length of Map (5 multiple from 15-35): 20 # of Steps: 2 From 3 - 14 # of Steps: 16 From 3 - 14 # of Steps: 10 Enter the poison placement (sets of 5) 1 = poison = No poison. Spaces between each entry (i.e 1 0 0 1 1 Positions [ 1- 5]: 1 0 0 1 1 Positions [ 6-10]: 11000 Positions [11-15]: 0 0 1 1 1 Positions [16-20]: 1 0 0 0 Enter the food placements (sets of 5) 1 = food 0 = NO food. Spaces between each entry (i.e 1 0 0 1 1) Positions [ 1- 5]: 0 1 1 0 0 Positions [ 6-10]: OOOOO Positions [11-15]: 1 1 0 0 1 Positions [16-20]: 0 1 1 1 1 Symbol : @ Cure : 3 Food : [READY] History : [Ready] Map Length: 20 Poison : 10011110000011110000 Food : 01100000001100101111 @PPPPPPPPPP |4)4)4)474)474)4)4)0) Cure: 3 | Foods: 0 | Steps: 10 Next Step [1-20] Too Little Steps!!! Next Step [1-20221 Too Little Steps!!! Next Step [1-20]13 Too Little Steps!!! Next Step [1-20] LII|||||1|||||||||2 12345678901234567890 ============ Cure: 3 | Foods: Steps: 10 =========== Next Step [1-20]: 0 Too Little Steps!!! Next Step [1-20]: 21 Too Many Steps!!! Next Step (1-20]: 8 Sorry Nothing @ |||||||||2 78901234567890 ======== Cure: 3 | Foods: | Steps: 9 Next Step [1-20]: 1 You ate POISON a ! ||1|||||||||2 12345678901234567890 ============ Cure: 2 | Foods: Steps: 8 ========= Next Step [1-20]: 15 You ate POISONIOUS FOOD @ - & |||||2 12345678901234567890 Cure: 1 | Foods: 1 Steps: 7 ==== Next Step [1-20]: 5 You ate POISONIOUS FOOD @ ! |||||2 12345678901234567890 ============ Cure: | Foods: 1 Steps: 6 ============ GAME OVER

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

What traditional external methods of recruitment are available?

Answered: 1 week ago