Programming Win Sound

I am doing a project where I have to download and make improvements to an arduino project called MazeRunner. I have tried to add a win sound when the final game piece is reached but I have very little knowledge of coding so it has been tough. I downloaded a win sound that I found on the forum and have been attempting to implement it into my code but have been getting error message after error message…can someone please help?:slight_smile:

MazeRunner.ino (12.7 KB)

If you need help with error messages, don't you think you should pick one or more and tell us what they are?

Paul

Oh yes, sorry about that.

Here is the error message I got:

Arduino: 1.8.10 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 18982 bytes (7%) of program storage space. Maximum is 253952 bytes.
Global variables use 955 bytes (11%) of dynamic memory, leaving 7237 bytes for local variables. Maximum is 8192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.