Frunit / qpop.js

Reimplementation of the 1995 game Q-Pop in vanilla Javascript. Play online at https://frunit.itch.io/q-pop
Other
5 stars 1 forks source link

Another corner case with mating and predators #7

Open patrakov opened 3 years ago

patrakov commented 3 years ago

Just had this during the "eat and be eaten" phase:

  1. It was the last move of a turn
  2. I opportunistically moved the character to a square where there was a female nearby (north), and I don't remember - either a predator south-west, or directly south.

I.e.:

before:

 ❤          ❤ 
  +   or     +
☠           ☠ 

after:

 ❤ 
 + 
 ☠ 

Expected result: mating and then fight, or, alternatively, fight and then (if won) mating. Then the "eat and be eaten" phase should terminate.

Actual result: mating, no fight at all, and the "eat and be eaten" phase terminated.

Frunit commented 3 years ago

Hm, this is strange. I will try to reproduce that and see how to fix it. Thank you for the bug report!