kjuraszek / advanced-tic-tac-toe

Advanced Tic Tac Toe made with React
GNU General Public License v3.0
0 stars 0 forks source link

Horizontal calculation bug #1

Closed kjuraszek closed 4 years ago

kjuraszek commented 4 years ago

A horizontal line doesn't score points when board size equals scoring length and is in one of middle rows. Probably bad conditions in function calculatePoints(), e.g.: if(i%width<=width-length && i<width**2 - (width * (length-1)) +1)

kjuraszek commented 4 years ago

Bug fixed !