concept this capstone in category javascript

appears as: this capstone
Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond

This is an excerpt from Manning's book Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond.

In this capstone you created a Prisoner’s Dilemma simulation runner. The point of the runner was to allow contests to program their own prisoner simulations, to see what kind of prisoner fares best in the prisoner dilemma scenario. You only made a few simple prisoner simulations; you could easily take this further by writing a more thoughtful prisoner simulation and see how well it does against the prisoner simulations you wrote in this capstone.

In this capstone you’re going to build an Asteroids-like game called Comets, shown in figure 29.1.

Figure 29.1. Comets game

There are many valid reasons why you would create a base class or a class that doesn’t extend anything. But I think the majority of most developers’ time spent with classes will be extending base classes provided from a framework such as React.js. For this capstone, you’re going to be working with a game framework that I have put together: the framework (like most frameworks) will handle most of the moving parts while giving you some base classes you can customize to create a unique game.

In this capstone you created a game using classes. You extended base classes that were provided to you from a framework. When extending these base classes, you made use of super in a constructor as well as when overriding methods. You used static and instance properties, and we discussed why a function set as an instance property can’t use super when overrode.