The ChessAIThon project (2025-1-ES01-KA220-VET-000354329) is co-funded by the European Union. The views and opinions expressed in this publication are those of the author(s) only and do not necessarily reflect those of the European Union or the Spanish Service for the Internationalisation of Education (SEPIE). Neither the European Union nor the National Agency SEPIE can be held responsible for them.

Using Chess logic and problem solving strategies to teach logic, functions and implementation of coding


Quiz


Question 1

In the analogy between a variable and a box, what does the label on the box represent?

Question 2

Which data type is most suitable for representing a piece using standard FEN notation (e.g., 'P' for a white pawn)?

Question 3

In the assignment operation square_e4 = 'P', which fundamental rule must be followed?

Question 4

If we define rank_2 = ['P', 'P', 'P', 'P', 'P', 'P', 'P', 'P'], what is the index of the first element on the left?

Question 5

Which Python command would you use to add a new piece to the end of a list called captured_pieces?