Implementing Tetris Logic and Functionality

In the previous chapter, we embarked on the development of the classic game Tetris. We determined the layout requirements of our application and implemented the layout elements we identified. In the process, we created two activities for the application: MainActivity and GameActivity. We also implemented the basic characteristics and behaviors of the views, but nothing pertaining to the core gameplay of the app was done. In this chapter, we are going to implement this gameplay. Over the course of this chapter, you will learn about the following topics:

  • Exception handling
  • The Model-View-Presenter pattern

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.