Skip to content

Commit

Permalink
Update exercises/practice/queen-attack/.approaches/simple-comparison/…
Browse files Browse the repository at this point in the history
…content.md

Co-authored-by: Kah Goh <[email protected]>
  • Loading branch information
jagdish-15 and kahgoh authored Nov 19, 2024
1 parent ec9e1e2 commit a4d7438
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class QueenAttackCalculator {

1. **Constructor**:

In the constructor of `QueenAttackCalculator`, we check if the queens are positioned at valid places.
The constructor of `QueenAttackCalculator` takes two `Queen` objects and checks if they 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.

Expand Down

0 comments on commit a4d7438

Please sign in to comment.