qixils / gamebot

C# Discord bot that automates games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Down-right victory is impossible

qixils opened this issue · comments

commented

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

--X
-X-
X--
commented

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)
commented

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