March 2021
Beginner to intermediate
686 pages
13h 6m
English
We are going to make good progress in this chapter. We will learn about Java variables that allow us to give our game the data it needs. By doing this, things such as the sub's location and whether it has been hit will soon be possible to code. Furthermore, we will look at the use of operators and expressions, which will enable us to change and mathematically manipulate this data as the game is executing.
In this chapter, we will cover the following topics: