Media Summary: This 4 lines of code: val piece = chessModel.pieceAt(col, row) if (piece != This is an important design decision. Classes working together should be loosely coupled. We created an interface named ... Half open range "0 until 8" is equivalent to closed range "0..7". We prefer half open range in our for loops.

Android Chess 005 Kotlin Nullable - Detailed Analysis & Overview

This 4 lines of code: val piece = chessModel.pieceAt(col, row) if (piece != This is an important design decision. Classes working together should be loosely coupled. We created an interface named ... Half open range "0 until 8" is equivalent to closed range "0..7". We prefer half open range in our for loops. We do need a singleton of our ChessGame class (was ChessModel in previous videos). Access 7000+ courses for 15 days FREE: Avoid NullPointerException in We started to play with MotionEvent.ACTION_DOWN, MotionEvent.ACTION_MOVE and MotionEvent.ACTION_UP. We'll use them ...

Capture is also handled in this movePiece(..) method. GitHub repo: "Rank" and "File" are terminology used in We also created a mutable set of ChessPiece named piecesBox in ChessModel. GitHub repo: ...

Photo Gallery

Android Chess 005: Kotlin nullable used in method "pieceAt(col: Int, row: Int) : ChessPiece?"
Android Chess 015: Introducing Kotlin "let" and "it" syntax used for nullable
Android Chess 016: Using Kotlin interface to decouple classes ChessView and MainActivity
What Happens if You Add `null + null` in Kotlin? | Kotlin Tips 2023
Android Chess 042: Half open range in Kotlin "0 until 8"
Android Chess 036: Using Kotlin keyword "object" for singleton
Android Kotlin Tutorial: Use Null Safety Operators to make code robust #4.4
Kotlin NULL Safe Operators | Best Explanation Ever | Elvis Operator and Non Null Assertion Operators
Android Chess 020: Overriding onTouchEvent(..) method in ChessView
Android Chess 019: Implementing ChessModel.movePiece(..) method
Android Chess 051: Creating Kotlin data class Square to group col and row
Android Chess 003: Overriding toString() of class Any to print out the empty chess board in Logcat
View Detailed Profile
Android Chess 005: Kotlin nullable used in method "pieceAt(col: Int, row: Int) : ChessPiece?"

Android Chess 005: Kotlin nullable used in method "pieceAt(col: Int, row: Int) : ChessPiece?"

Kotlin's

Android Chess 015: Introducing Kotlin "let" and "it" syntax used for nullable

Android Chess 015: Introducing Kotlin "let" and "it" syntax used for nullable

This 4 lines of code: val piece = chessModel.pieceAt(col, row) if (piece !=

Android Chess 016: Using Kotlin interface to decouple classes ChessView and MainActivity

Android Chess 016: Using Kotlin interface to decouple classes ChessView and MainActivity

This is an important design decision. Classes working together should be loosely coupled. We created an interface named ...

What Happens if You Add `null + null` in Kotlin? | Kotlin Tips 2023

What Happens if You Add `null + null` in Kotlin? | Kotlin Tips 2023

Null

Android Chess 042: Half open range in Kotlin "0 until 8"

Android Chess 042: Half open range in Kotlin "0 until 8"

Half open range "0 until 8" is equivalent to closed range "0..7". We prefer half open range in our for loops.

Android Chess 036: Using Kotlin keyword "object" for singleton

Android Chess 036: Using Kotlin keyword "object" for singleton

We do need a singleton of our ChessGame class (was ChessModel in previous videos).

Android Kotlin Tutorial: Use Null Safety Operators to make code robust #4.4

Android Kotlin Tutorial: Use Null Safety Operators to make code robust #4.4

Access 7000+ courses for 15 days FREE: https://pluralsight.pxf.io/c/1291657/431340/7490 Avoid NullPointerException in

Kotlin NULL Safe Operators | Best Explanation Ever | Elvis Operator and Non Null Assertion Operators

Kotlin NULL Safe Operators | Best Explanation Ever | Elvis Operator and Non Null Assertion Operators

Instagram: https://www.instagram.com/code.with.yash SUBSCRIBE❤ Code With Yash

Android Chess 020: Overriding onTouchEvent(..) method in ChessView

Android Chess 020: Overriding onTouchEvent(..) method in ChessView

We started to play with MotionEvent.ACTION_DOWN, MotionEvent.ACTION_MOVE and MotionEvent.ACTION_UP. We'll use them ...

Android Chess 019: Implementing ChessModel.movePiece(..) method

Android Chess 019: Implementing ChessModel.movePiece(..) method

Capture is also handled in this movePiece(..) method. GitHub repo: https://github.com/zhijunsheng/

Android Chess 051: Creating Kotlin data class Square to group col and row

Android Chess 051: Creating Kotlin data class Square to group col and row

"Rank" and "File" are terminology used in

Android Chess 003: Overriding toString() of class Any to print out the empty chess board in Logcat

Android Chess 003: Overriding toString() of class Any to print out the empty chess board in Logcat

This is the

Android Chess 004: Creating Kotlin data class ChessPiece, enum classes ChessPlayer and ChessRank

Android Chess 004: Creating Kotlin data class ChessPiece, enum classes ChessPlayer and ChessRank

We also created a mutable set of ChessPiece named piecesBox in ChessModel. GitHub repo: ...