-
Notifications
You must be signed in to change notification settings - Fork 0
Week3 3 #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| { | ||
| for (int j = 0; j < board.GetLength(0) - 1; j++) | ||
| { | ||
| if (board[i][j] != board[i][j + 1]) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkForTie code is missing
|
Hi Yousif,
It’s looks like this was the version before we working on it last night. I will push the updated version tonight when I get home.
Sorry for the confusion.
…Sent from my iPhone
On Oct 30, 2018, at 12:53 AM, yousifS ***@***.***> wrote:
@yousifS commented on this pull request.
In TicTacToe/TicTacToe.cs:
> }
+
public static bool CheckForTie()
{
// your code goes here
checkForTie code is missing
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
No description provided.