qixils / gamebot

C# Discord bot that automates games
MIT License
3 stars 2 forks source link

Down-right victory is impossible #2

Open qixils opened 7 years ago

qixils commented 7 years ago

All forms of victory currently work except for up-right. Example of up-right victory:

--X
-X-
X--
qixils commented 7 years ago

Potential implementation:

  1. Set current tile to (1, [height])
  2. Add/reset points depending on current placed tile
  3. Add one to 1 and subtract one from [height]
  4. Repeat steps 2-3 until at ([width], 1)
qixils commented 7 years ago

An issue is occurring with downright victories, re-opening issue
Implementation/fix could be similar to up-right win implementation:

  1. Set current tile to [width], [height]
  2. Add/reset points depending on current tile
  3. Subtract 1 from width and height
  4. Repeat steps 2-3 until at 1, 1