So, after digging through your code, it appears that the diagonal check can only win in one direction (what happens if I add a token to the lowest row and column?)
Instead, regardless of which direction you're checking in, the
You will need a starting point (x/y) and an x/y delta (direction of movement). This can be boiled down to a single method...
didWin(int[][] grid, int check,...
User Profile
Collapse
Profile Sidebar
Collapse
sandeep002
Banned
Last Activity: Aug 19 '22, 11:11 AM
Joined: Mar 25 '22
Location: Lucknow
-
-
The article provides me with a lot of useful information, which I believe is very important for everyone; I hope that more people become aware of your post. This is a very useful post, and I admire the author. I hope you succeed in your next post, and I will continue to follow your posts. Very good topic, similar texts are available, but I'm not sure if they're as good as your work.Leave a comment:
No activity results to display
Show More
Leave a comment: