Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PART# 1 - Rabbits or Carrots Game In this PART# 1 , you are NOT ALLOWED TO USE ARRAYS. You can only use variables (
PART# Rabbits or Carrots Game
In this PART# you are NOT ALLOWED TO USE ARRAYS. You can
only use variables including String to store data, selection statements if
elseif switch whilefordowhile loops, and methods. You are not
allowed to use other complex data structures including arrays and
ArrayLists or classes to implement PART# You will implement this part
in a java file called RabbitGamePartjava.
In this project, you will design and implement a game in which we have
rabbits and carrots in a triangular game area. The user gives the size of the
game area Let's assume that the user gives as You will have a
game area as follows:
The user determines the size of the game area. It can be bigger or smaller.
In the game area, you will have the following characters and rules;
Place rabbits at random locations,
Place carrots at locations where i and are both even numbers,
Place rats at random locations,
Place exit rooms at random locations one goes to Heaven, the other
goes to Hell,
Place one player in a random location.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started