Skip to content

Commit

Permalink
Fixing style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdish-15 committed Nov 14, 2024
1 parent d19f7bf commit 418ddb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class QueenAttackCalculator {

## Additional Explanation for Code

1. **Constructor**:
1. **Constructor**:
In the constructor of `QueenAttackCalculator`, we check if the queens are positioned at valid places. If either queen is `null`, or if both queens occupy the same position, an exception is thrown. The constructor takes two `Queen` objects, `queen1` and `queen2`, and stores them as instance variables.

2. **Method (`canQueensAttackOneAnother`)**:
Expand Down

0 comments on commit 418ddb5

Please sign in to comment.