I've finished and implemented the game (here)
However, there seems to be a couple of issues:
1) Tiles disappear randomly - after a few merges, the tile will just vanish; I haven't been able to get a tile above 32 before it vanishes
2) Can't see the score during the game
Anyone else had these issues?
Bug in the game?
Resolved
Comments (6)
- Popular
- New
- Old
You must be signed in to leave a comment
Pavlo Plynko Java Developer at CodeGym
6 April 2020, 12:50solution
You misused recursion in your createNewNumber() method.
Try to add "else" to "if" condition:
+2
Anthony Chalk
6 April 2020, 15:30
Thank you very much.
Turns out it was my fault lol; was just wondering because it did validate.
0
Pavlo Plynko Java Developer at CodeGym
6 April 2020, 15:59
Oh yes, the validator needs calibration :)
0
Pavlo Plynko Java Developer at CodeGym
3 April 2020, 14:42
1) We could try solve it, if you attach your code.
2) The score is not displayed if you run the game in a browser. This is so for everyone. You can show the score in the final message. Or display it yourself in some cells. Here is an example from another game:
https://codegym.cc/projects/apps/54
0
Anthony Chalk
3 April 2020, 14:49
0
Inderdeep Singh
22 April 2020, 10:55
can you please share your code?
0