CodeGym /Courses /Java Collections /Big task: Tetris

Big task: Tetris

Java Collections
Level 2 , Lesson 15
Available
Big task: Tetris - 1

"Hi, Amigo!"

"Hello, Captain Squirrels, sir!"

"I have a new mission for you. Let's write the game Tetris."

"This is a secret operation. All further instructions will be provided via IntelliJ IDEA."

"Yes, sir! Beginning my secret mission..."

7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 1)
Tetris (part 1)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 2)
Tetris (part 2)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 3)
Tetris (part 3)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 4)
Tetris (part 4)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 5)
Tetris (part 5)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 6)
Tetris (part 6)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 7)
Tetris (part 7)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 8)
Tetris (part 8)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 9)
Tetris (part 9)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 10)
Tetris (part 10)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 11)
Tetris (part 11)
14
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 12)
Tetris (part 12)
14
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 13)
Tetris (part 13)
28
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 14)
Tetris (part 14)
14
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 15)
Tetris (part 15)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 16)
Tetris (part 16)
7
Task
Java Collections, level 2, lesson 15
Locked
Tetris (part 17)
Tetris (part 17)
Comments (9)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Hoist Level 17, San Diego, United States
8 January 2024
I've corrected the code a little bit. But overall, well done. Enjoy playing Tetris! P.S. Just don't forget to adjust the height of the console. Requirements: • Your big task for Level 32 is done!
Justin Smith Level 41, Greenfield, USA, United States
26 September 2022
This whole big task is far easier than any of regular tasks. Parts 1 through 11 should have been all one long (but still easy) task, the orange ones are easy, and the only red task is probably equal to a regular orange task. Overall, all of the real work is provided for you. Which means you don't really learn much doing this task, but I guess it's a nice break. My suggestion for the CG team to make this one a lot better: 1. Use a graphical JFrame implementation, not the wonky console one. This is the perfect opportunity to introduce working with graphics. 2. Actually have people write the code for setting up JFrames and stuff. I get that it hasn't been taught, but you could still have easy-rated tasks where you literally just tell students what to type, and it would be more educational than this.
UltraGameCoder Level 41, Groningen, Netherlands
10 August 2022
When they ask you to create methods, I thought they also had to be implemented unless explicitly specified not to. But now that I get to the next assignments, my existing implementation of these methods got overridden and I had to redo the implementation from scratch. print, removelines etc. So for whoever reads this in time, don't work on things they aren't explicitly telling you to in the making of Tetris.
Ibrahim Level 24, Sheffield, United Kingdom
2 June 2022
Pretty easy task but not structured well. I found the games in the game section had better structure and allowed you to do more. Here a lot of the code is written for you.
MaGaby2280 Level 41, Guatemala City, Guatemala
1 June 2021
Finally a big task you can really enjoy! 😀
Elvis Lee Level 41, Aurora, United States
1 February 2020
It's not difficult to apply 2048 tactics to extend this task. Instead of displaying characters in console, Modify the JPanel in View class of 2048, different colors of GamePieces can be shown like the diagram shown above. Just replace the "1" of gamePieces with various int index which represents different colors. Of course, it needs some modifications on various classes logic. But it's worth to spend several hours to make it a real playable game. Have fun!
yz Level 37, Jakarta, Indonesia
11 December 2019
for those who didnt understand part 13 google how to display multidimensional array
ted Level 46, Indonesia Expert
25 March 2023
wow, that helped a lot!!!
Senned Level 41, Azov, Russia
4 December 2019
Too easy after Multithreading quests grand tasks. Sadly we don't write all code(