I remember reading this book maybe 8-10 years ago. It was set in a school and all the characters were named after chess pieces. There was a teacher called Mr Bishop maybe and someone’s nickname might have been Rook. Probably not exactly those but along those lines.
We followed different perspectives with one being the elderly headteacher and other teachers at the school.
In the book we follow a student as they navigate the school as maybe they were the child of the grounds-person.
I also remember the end:
The student was assumed to be a boy but at the end was revealed to be a girl. She therefore takes over the mantle of Queen when she achieves her goal.
The novel was in English and was aimed primarily at adults.