jonkogan / nullpomino

Automatically exported from code.google.com/p/nullpomino
0 stars 0 forks source link

[SQUARE mode] Square count is wrong #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open up square mode
2. Make some gold squares

What is the expected output? What do you see instead?
Each gold square adds 2 to the square count. So, for example, I run this 
replay: http://www.youtube.com/watch?v=KNR-IFUQIfM with the new options and 
such. At the end, it says I made 7 squares, when I only made 4...

Please use labels and text to provide additional information.
I'm wondering if we should store gold and silver squares as two separate engine 
variables, or something like that...

Original issue reported on code.google.com by Zirc...@gmail.com on 15 Jul 2010 at 7:58

GoogleCodeExporter commented 8 years ago
It's because one gold square worth two silver squares. (5 points awarded for 
silver, 10 points for gold)
But yes, I should have added separate square count. Maybe add separated squares 
count to leaderboard too?

Original comment by pbomqlu910963@gmail.com on 17 Jul 2010 at 4:24

GoogleCodeExporter commented 8 years ago
I made a commit in r93 that fixed it by returning an array of length 2 for the 
square counts, where squares[0] is gold squares, and squares[1] is silver 
squares.

Not sure if that integrates with what you did or not, but it fixes the issue.

Original comment by Zirc...@gmail.com on 19 Jul 2010 at 7:46

GoogleCodeExporter commented 8 years ago

Original comment by Zirc...@gmail.com on 19 Jul 2010 at 7:47

GoogleCodeExporter commented 8 years ago
Ah, uh, sorry, I misread your comment... by "what you did", I meant "what you 
were going to do"... but I guess it could work.

Original comment by Zirc...@gmail.com on 19 Jul 2010 at 7:49