Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Kotlin Programming By Example

You're reading from   Kotlin Programming By Example Build real-world Android and web applications the Kotlin way

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788474542
Length 500 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Iyanu Adelekan Iyanu Adelekan
Author Profile Icon Iyanu Adelekan
Iyanu Adelekan
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. The Fundamentals FREE CHAPTER 2. Building an Android Application – Tetris 3. Implementing Tetris Logic and Functionality 4. Designing and Implementing the Messenger Backend with Spring Boot 2.0 5. Building the Messenger Android App – Part I 6. Building the Messenger Android App – Part II 7. Storing Information in a Database 8. Securing and Deploying an Android App 9. Creating the Place Reviewer Backend with Spring 10. Implementing the Place Reviewer Frontend 11. Other Books You May Enjoy

Understanding Tetris

Before attempting to develop the Tetris game as an Android application, we need to understand the game, its rules, and its constraints.

Tetris is a matching puzzle video game that makes use of tiles. The name Tetris is derived from the words tetra – the Greek numerical prefix for four – and tennis. The tiles in Tetris combine to make up tetrominoes which are geometric shapes composed of four squares connected orthogonally:

Tetris tetrominoes

In Tetris, a random sequence of tetrominoes fall down upon a playing field. These tetrominoes can be manipulated by the player. A number of motions can be performed on each tetromino piece. Pieces can be moved to the left, to the right, and rotated. In addition, the speed of descent of each piece can be sped up. The objective of the game is to create an uninterrupted horizontal line of ten cells with the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image