May 2018
Intermediate to advanced
256 pages
6h 20m
English

When you put together four walls, you have a room! In this chapter, you’ll create the buildRoom() function, which calls buildWall() four times to construct a room like the one shown in Figure 12-1. This chapter is short and sweet because you did most of the coding work when you wrote the buildWall() function in Chapter 11. When you’re done creating the buildRoom() function, you’ll be able to use it to build complex structures, such as a castle!

Figure 12-1: A 5 × 6 × 4 room built of stone bricks
Read now
Unlock full access