For this assignment, you will implement Tetris. I have created a starter project for you in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For this assignment, you will implement Tetris. I have created a starter project for you in IntelliJ using wheelsunh, but it will be up to you to finish the implementation. You are responsible for creating the remaining tetronimos, adding in the logic to implement the rules of the game, and finishing the GUI to include scoring and a preview of the next shape that will drop. Please be aware that my code is incomplete in places and you will need to make changes to complete your implementation. For example, with my code if you rotate a tetronmio close to the edge, part of the tetronimo can go out of bounds...you will need to fix this. Instructions (Models) In the models package, you will need to implement the remaining tetronimos. I have given you one to start (the straight line), it will be up to you to create the others. My implementation uses inheritance and I heavily recommend that you leverage this as much as possible to build the remaining pieces. Instructions (Controllers) The controllers package is where you need to implement the logic for the game. You can break up the logic into as many or as few classes as you see fit, but your package must handle the following: • Detecting when a row (or rows) have been filled and shifting down the blocks from the rows above . . Scoring the game • Detecting when the game is over . . Randomly choosing the next piece to drop • Detecting when a piece has fallen as far as it possibly can (I have started this for you, you will need to finish it) Instructions (Views) This package is simply going to contain the GUI for the game. You are going to need to add to my GUI a place for the score and also a preview of the next block to be dropped. Instructions (Video) As part of your submission, you will need to do a short video showing your program is working. You will need to submit the code for grading, but this will help in case there is any issue getting the program to demonstrate all functionality. Your video must be in the .mov format and your program should be easy to see. You are not required to be in the video if you do not want to be. PLEASE SUBMIT THE VIDEO SEPARATE FROM YOUR ZIP FILE. Notes . Clearing a line in Tetris is worth 100 points, if you clear four lines at once (referred to as a Tetris) that is worth 800 points. . There are rules about getting double and triple Tetrises, but for sake of simplicity we are not going to worry about those here For sake of simplicity, you will only be expected to implement the single player version. . .. . If you need any information about Tetris, please refer to the Wikipedia article E. • You are free to modify my starter code however you so choose. . . Fun fact: This is the same final project I was assigned when I learned Java not that long ago. For this assignment, you will implement Tetris. I have created a starter project for you in IntelliJ using wheelsunh, but it will be up to you to finish the implementation. You are responsible for creating the remaining tetronimos, adding in the logic to implement the rules of the game, and finishing the GUI to include scoring and a preview of the next shape that will drop. Please be aware that my code is incomplete in places and you will need to make changes to complete your implementation. For example, with my code if you rotate a tetronmio close to the edge, part of the tetronimo can go out of bounds...you will need to fix this. Instructions (Models) In the models package, you will need to implement the remaining tetronimos. I have given you one to start (the straight line), it will be up to you to create the others. My implementation uses inheritance and I heavily recommend that you leverage this as much as possible to build the remaining pieces. Instructions (Controllers) The controllers package is where you need to implement the logic for the game. You can break up the logic into as many or as few classes as you see fit, but your package must handle the following: • Detecting when a row (or rows) have been filled and shifting down the blocks from the rows above . . Scoring the game • Detecting when the game is over . . Randomly choosing the next piece to drop • Detecting when a piece has fallen as far as it possibly can (I have started this for you, you will need to finish it) Instructions (Views) This package is simply going to contain the GUI for the game. You are going to need to add to my GUI a place for the score and also a preview of the next block to be dropped. Instructions (Video) As part of your submission, you will need to do a short video showing your program is working. You will need to submit the code for grading, but this will help in case there is any issue getting the program to demonstrate all functionality. Your video must be in the .mov format and your program should be easy to see. You are not required to be in the video if you do not want to be. PLEASE SUBMIT THE VIDEO SEPARATE FROM YOUR ZIP FILE. Notes . Clearing a line in Tetris is worth 100 points, if you clear four lines at once (referred to as a Tetris) that is worth 800 points. . There are rules about getting double and triple Tetrises, but for sake of simplicity we are not going to worry about those here For sake of simplicity, you will only be expected to implement the single player version. . .. . If you need any information about Tetris, please refer to the Wikipedia article E. • You are free to modify my starter code however you so choose. . . Fun fact: This is the same final project I was assigned when I learned Java not that long ago.
Expert Answer:
Answer rating: 100% (QA)
It looks like you have a multifaceted assignment to implement the game of Tetris in Java Ill break down the various components and requirements and ex... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Consider the system =2x+4y =-x+2y (a) (8 pts) Find the general real solutions (b) (2 pts) Draw the phase plane of the system
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Oriole Ltd. had the following transactions in its first month of operations: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Issued 18,000 common shares in exchange for $90,000 cash. Took out a $24,900 loan from the...
-
Within the context of the planning cycle, the planning that takes place at the highest levels of the firm is called: A. detailed planning and control. B. strategic planning. C. operational planning....
-
Consider the transition from a 3d to a 2p state of hydrogen in an external magnetic field. Assume that the effects of electron spin can be ignored (which is not actually the case) so that the...
-
List all 6 possible SRSs of size n = 2, calculate the proportion of red cars in the sample, and display the sampling distribution of the sample proportion on a dotplot. Is the sample proportion an...
-
In Problem 2.4 you were asked to compute a $95 %$ CI on mean gasoline prediction interval on mileage when the engine displacement $x_{1}=275$ in. $^{3}$ Compare the lengths of these intervals to the...
-
From California to New York, legislative bodies across the United States are considering eliminating or reducing the surcharges that banks impose on non-customers who make $10 million in withdrawals...
-
Crane Company issued $700000 of 8%, 5-year bonds at 104, Assuming straight-line amortization and annual interest payments, what is the amount of the amortization at each interest payment date?
-
Jake claims that he can buy a $210,000 for about the same as his rent, and therefore he should definitely buy because he has heard that "renting is bad". Help him walk through this argument. a....
-
Explain, what it meant by 'lifting the corporate veil' and provide two examples of circumstances of where the veil is lifted in company law.
-
In the case of Kitty Galore and whether or not Ms. Jones is liable for injuries done to Chloe Smith by her cat. Could you flesh out more of the analysis section?
-
National Motors is an auto manufacturing company. It sells a new EV car to Elon for $45,000. On the very day Elon buys the car, he is driving the car on the West Side Highway when the power steering...
-
Explain how you would develop an audit plan to provide a basis for expression of an audit option. Describe why internal controls are part of understanding of the client. Evaluate the client and their...
-
Identify the types of managerial finance decisions described in the following :How much of Atlanta Aeronautics Company's current earnings should be paid out as dividends, as opposed to being retained...
-
You have recently employed someone who consistently breaks the rules, for example, they regularly arrive late for work, do not do what is asked of them; they take excessive breaks and are often...
-
If a firm does not produce any output, itsAnswertotal fixed cost must be zero. total costs must be zero. total variable cost must be zero. marginal cost must be zero. economic profit must be positive.
-
The diagram shows the two forces acting on a small object. Which of the following is the resultant force on the object? A. 8 N downwards B. 8 N upwards C. 2 N downwards D. 2 N upwards 3 N 5 N
-
Piros Ltd. sold inventory to its wholly owned subsidiary, Stanimir, for $15,000. These items previously cost Piros $12,000. Stanimir subsequently sold half the items to Nova for $8,000. The tax rate...
-
ROS Inc. is located in Switzerland. ROS, whose currency is the Swiss franc (SF), is wholly owned by CRO Ltd. Its functional currency is the SF. The summarized balance sheet for ROS at December 31,...
-
As part of a corporate expansion plan, Volans Ltd. acquired the shares (cum div.) of Tucana Ltd. on January 1, 2012, for $138,000 cash. The statements of nancial position of both companies at...
-
If you stood atop a super-tall ladder three times as far from Earths center as at Earths surface, how would your weight compare with it present value?
-
How was Pioneer 10 able to escape the solar system with an initial speed less than escape speed?
-
With no gravity, a horizontally moving projectile follows a straight-line path. With gravity, how far below the straightline path does it fall compared with the distance of free fall?
Study smarter with the SolutionInn App