OverkillManatee / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

[Chapter 6] MrNom maximum score #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the printed version of the book, in the sub-section "The World Class", 
chapter 6, page 257, Mr.Nom maximum score is wrong.

Ok, this has no effect with the game, nor with our learning process, but I love 
Mr.Nom and it can do better than 1000 points :)

The world is big 10x13 cells, and 3 of them are already occupied by the snake 
at the beginning of the game. So, the greatest lunch of Mr.Nom is (10 * 13) - 3 
 = 127 stains, which are equals to 1270 points. There is no need of parenthesis 
in this calculation, but in the book they aren't written, and bad priority with 
math operations has turned in wrong result.

Go Mr.Nom, beat your highscore!!

--- Alessandro Dal Bello ---

Original issue reported on code.google.com by alessand...@gmail.com on 25 Aug 2011 at 9:05

GoogleCodeExporter commented 9 years ago
Good catch! Will change that in second edition. Thanks a bunch.

Original comment by badlogicgames on 27 Aug 2011 at 11:55

GoogleCodeExporter commented 9 years ago
Fixed in second revision, thanks a bunch!

Original comment by badlogicgames on 6 Sep 2011 at 1:47