Track TypeScript
TypeScript track

Queen Attack

An exercise from the TypeScript track
hard

About this exercise

Given the position of two queens on a chess board, indicate whether or not they are positioned so that they can attack each other.

control flow conditionals
control flow loops
equality
exception handling
optional values
parsing
text formatting
View all solutions