hleise / Leise_CSCI2270_FinalProject

1 stars 1 forks source link

Found a bug in two players. #2

Open NelsonKhor opened 9 years ago

NelsonKhor commented 9 years ago

I really enjoyed playing this awesome program you wrote, so I decided to share your game with my roommate. While playing against him, we found a bug in your program. You can't really see it initially until you get further into the game.

The Bugs

Here is how our input goes (ex. 'C1' means Player 1 press C):

C1 D1 C2 A1 D2 A2 E1 D2 D1 A2 C2 A2 F2 A2 E2 F1 C2 E2 C1 D2 A2 E1 F1 B1 D2 F1 D1 C2 A2 E2 E1 F1 A1 D2 <-(found bug here)

After executing D by player 2, as you can see that:

I have attached screenshots for comparison below.

We decided to ignore the bug and continue to play, but then we found another error again. We believed it's caused by the same bug. If I have enough time to work on this, I will try to debug it. If not, maybe you should try to debug it. :+1:

Screenshots

Before the bug (after Player 1 pressed A, before Player 2 press D)

beforebug

A wild bug appeared! (after Player 2 pressed D)

afterbug

hleise commented 9 years ago

Thanks man, but that's actually part of the game. If you land on an empty space on your side you take all of the other player's pieces on the opposite side.

hleise commented 9 years ago

If that wasn't clear in the "How to Play" I can try to fix that.

NelsonKhor commented 9 years ago

@hleise27 I see. That makes sense now. Yea, I think you should fix that on "How to Play".