New games every week!
Flashing Counters Blog
25th March 2019
Fixed the errant flashing when a player wins Four in-a Row.

@RSKGames

Played a few times and managed to beat the AI half the times. Only weird thing I noticed is that when player wins sometimes both the orange and some blue pieces nearby seem to animate.


Indeed. The flashing is done by the AI. Where the AI sees a possible win, it triggers the flashing, and occasionally it bleeds through into weird areas.

-=-=-



I spent about an hour staring at screens looking very much like this, trying to figure out the best way to narrow down the flashing, and decided to just add a "if colour of the winner" parameter, instead. .. Although I'm not 100% convinced that'll hold up, either, due to the chaos of the AI stuff.
Hmm..

Anyway, it should be "better", and that's all I can say!
Views 45, Upvotes 8  
Shoebox
New games every week!
Site credits : PHP script, Blog posts, Games, Music, Pixelart, Poems and More : Jayenkai
(c) Jayenkai 2023 and onwards, RSS feed

Blog - Flashing Counters - AGameAWeek