need help on problem automated chessboard

when I try to upload the code to my Arduino I get this error code:
/Users/boydvl/Downloads/Chess-2/Motor_ControllerV2_0/Motor_ControllerV2_0.ino:18:21: fatal error: AFMotor.h: No such file or directory
#include <AFMotor.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.

I don't understand what's wrong with my code, can anyone help me out?
code is in the attachment.

thank you in advance

Motor_ControllerV2_0.ino (1.21 KB)

boydooz:
I don't understand what's wrong with my code, can anyone help me out?
code is in the attachment.

That error message is not telling you there is a problem with your code. It is telling you that it can't find the AFMotor library.

Are you sure you have installed the library correctly?

...R

in my effort to make a chessboard using Arduino I can't find a way to link the chess code to the chess.app program from the Mac, does anyone know how to link these two? code is in the attachment and the chess app is pre-installed on your Mac

thank you in advance

Motor_ControllerV2_0.ino (9.43 KB)

In the 1 1/2 hours since your previous thread on the same topic that code has grown big time. How do you create 8 kB of code in that little time?

Oh, and please keep a single project to a single thread.

Please don't waste your time looking for yet another version of this thread; I deleted it.