Open jorda0mega opened 10 years ago
on page 210 a game is initialized with the following:
this.size = size ? Math.floor(Math.random() * 8) + 8 : size;
however, if size is null it is trying to create Game with null size. Therefore, the code should read like this:
this.size = size ? size : Math.floor(Math.random() * 8) + 8;
on page 210 a game is initialized with the following:
this.size = size ? Math.floor(Math.random() * 8) + 8 : size;
however, if size is null it is trying to create Game with null size. Therefore, the code should read like this:
this.size = size ? size : Math.floor(Math.random() * 8) + 8;