Summary

In this chapter, we built a complete game and played it. We also played a better version of the game we have built. All you need to remember is that you must know the logic behind all the code that we previously discussed. You are given the source code of the better version of the game with this chapter. I hope that you will study the code and write your own Battleship game. We used a jquery.js JavaScript file on our improved version of the Battleship. The jquery.js file has a lot of lines of code (We will discuss this in Chapter 6, Exploring the Benefits of jQuery).

If you master all the code that we discussed in this chapter, we can now move to the next chapter.

Get JavaScript Projects for Kids 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.