Skip to content

Conversation

@d3marco
Copy link
Owner

@d3marco d3marco commented Oct 22, 2018

No description provided.

{
for (int j = 0; j < board.GetLength(0) - 1; j++)
{
if (board[i][j] != board[i][j + 1])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the cells of the first row are equal to each other, and they are blank? is that a win?

public static bool DiagonalWin()
{
// your code goes here
if (board[0][2] != board[1][1]) return false;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is not correct. what if board[0][2] and board[1][1] are not equal.
But board[0][0], board[1][1] and board[2][2] are equal?

public static bool CheckForTie()
{
// your code goes here

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkForTie code is missing

@d3marco
Copy link
Owner Author

d3marco commented Oct 30, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants