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.
Table of Contents
Writing a chess program as a single block of instructions would be particularly complex and would increase the likelihood of making mistakes. To make the code more readable, easier to develop, and easier to maintain, it is advisable to break the problem down into small functions, each specialized in performing a well-defined task.
Real case scenario: Rewrite the code from Paragraph 2 (link to 01_Casescenario_Rewritecode.pdf file)