Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this assignment, you will implement Tetris. I have created a starter project for you in IntelliJ using wheelsunh, but it will be up
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.
Step by Step Solution
★★★★★
3.30 Rating (156 Votes )
There are 3 Steps involved in it
Step: 1
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...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