CHORE: Removed redundant for loop

This commit is contained in:
2026-10-12 11:23:30 -04:00
parent 7ef5407684
commit dfc381bd9b
2 changed files with 5 additions and 13 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include <time.h>
#include <unistd.h>
#include "engine.h"
@@ -24,8 +24,8 @@ main()
while (is_open(status, 64, &engine) && process_input(&engine.dir))
{
if(equals(&engine.fruit, &engine.head)) {
if (equals(&engine.fruit, &engine.head))
{
eat(&engine);
}
move(&engine);