Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Assignment
Introduction
Assignment Structure
One thing that I have learnt in life is that farming simulators are the best strategy for
making money as a game dev. Clearly, simulated hard work is much more fun than actual
hard work. I have not had any success yet from selling ABS to venture capitalists, so this
time I will get my army of junior programmers to build me the ultimate farming simulator!
I have been told that we are now in a post-graphics era, where text-based games are the
modern standard. With all that in mind, follow this specification to create Mawson Valley.
Figure 1: The ultimate, most lucrative game type
1
Importing into eclipse
The assignment has been provided as an eclipse project. You just need to import the project
into an existing workspace. See Figure 2 for a visual guide. Make sure that your Java JDK
has been set, as well as the two jar files that you need for junit to function. This can be
found in Project → Properties → Java Build Path → Libraries. The jar files have been
provided within the project; there is no need to download any other version and doing so
may impact the testing environment.
Figure 2: Importing the project through File → Import
Part A
Your first task is to create all of the classes shown in Figure 3. If you do not know how
to read a UML diagram, then think of this as a research task. Using your knowledge of
classes and inheritance, you must create all of the classes shown, exactly to spec. You are
not provided with these classes—you must make them from scratch—so read this section
carefully.
2
+Plant()
+Plant(name: String, symbol: char, maturationTime: int, yield: int)