Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In JAVA: As part of a computer game system, you received responsibility for the User Interface (UI) module - the current task: to develop the

In JAVA: As part of a computer game system, you received responsibility for the User Interface (UI) module - the current task: to develop the ability to build an object for a button (Button) for the screen. At the moment only yellow, blue and green colors are needed, probably in the future additional colors will be used. Due to the heavy graphics present in the game, it was decided to save memory resources (and as a derivative also to improve the performance of the game) and therefore each button of a certain color can be created only once and its position can change depending on the game. 1. Build the system in an optimal way using the Design Pattern that we learned at home and write the appropriate Java code for the above system. Activate a mechanism (at your discretion) that changes the position of the button randomly. 2. Describe (here, in the body of the document) the design of the system you used in 2-3 sentences. Answer: 3. After a certain time, it was decided that once the first button of a certain color is created - 3 buttons of additional colors cannot be created. Make a change in the code you wrote in order to adapt the system to the new requirement. Explain (using the comments in the code files) in one sentence the change you made.

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 Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

=+a) Show that mixing implies ergodicity.

Answered: 1 week ago