Skip to content

Commit c5aee29

Browse files
authored
Merge pull request #4 from Puneethkumarsn/july-31
updated comment text in simon.ino
2 parents 28391ba + ff8f60e commit c5aee29

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/simon/simon.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const byte buttonPins[] = {2, 3, 4, 5};
3333
*/
3434
const int gameTones[] = { NOTE_G3, NOTE_C4, NOTE_E4, NOTE_G5};
3535

36-
/* Global variales - store the game state */
36+
/* Global variables - store the game state */
3737
/* gac:start
38-
✅ It's a good pratice to initialize all variables to a default value when
39-
delcaring them.
38+
✅ It's a good practice to initialize all variables to a default value when
39+
declaring them.
4040
4141
We use `gameSequence` to keep track of the current color sequence
4242
that the user has to repeat, and `gameIndex` tells us how long the
@@ -73,7 +73,7 @@ void setup() {
7373
}
7474

7575
/**
76-
Lights the given LED and plays the suitable tone
76+
Lights the given LED and plays a suitable tone
7777
*/
7878
/* gac: ✅ Good function name: describes exactly what it does */
7979
void lightLedAndPlayTone(byte ledIndex) {
@@ -161,7 +161,7 @@ bool checkUserSequence() {
161161
}
162162

163163
/**
164-
Plays an hooray sound whenever the user finishes a level
164+
Plays a hooray sound whenever the user finishes a level
165165
*/
166166
void playLevelUpSound() {
167167
tone(SPEAKER_PIN, NOTE_E4);

0 commit comments

Comments
 (0)