-
Notifications
You must be signed in to change notification settings - Fork 39
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
base: main
Are you sure you want to change the base?
Bugfix/bug 001 #20
Conversation
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.
change variable name 'x'
src/12_RefactoringGolf/hole1/kata.ts
Outdated
@@ -4,7 +4,7 @@ | |||
|
|||
export class Game { | |||
private _lastSymbol = ' '; | |||
private _board: Board = new Board(); | |||
private _x: Board = new Board(); |
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.
bad variable name: x is not explicit
src/12_RefactoringGolf/hole1/kata.ts
Outdated
this._board.TileAt(0, 0)!.Symbol != ' ' && | ||
this._board.TileAt(0, 1)!.Symbol != ' ' && | ||
this._board.TileAt(0, 2)!.Symbol != ' ' | ||
this._x.TileAt(0, 0)!.Symbol != ' ' && |
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.
x should be replaced by board
i think i fixed it