Skip to content
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

Bugfix/bug 001 #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Bugfix/bug 001 #20

wants to merge 4 commits into from

Conversation

guillaumeagile
Copy link
Owner

i think i fixed it

Copy link
Owner Author

@guillaumeagile guillaumeagile left a comment

Choose a reason for hiding this comment

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

change variable name 'x'

@@ -4,7 +4,7 @@

export class Game {
private _lastSymbol = ' ';
private _board: Board = new Board();
private _x: Board = new Board();
Copy link
Owner Author

Choose a reason for hiding this comment

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

bad variable name: x is not explicit

this._board.TileAt(0, 0)!.Symbol != ' ' &&
this._board.TileAt(0, 1)!.Symbol != ' ' &&
this._board.TileAt(0, 2)!.Symbol != ' '
this._x.TileAt(0, 0)!.Symbol != ' ' &&
Copy link
Owner Author

Choose a reason for hiding this comment

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

x should be replaced by board

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.

1 participant