From 5a7a40787192d18f11091862f822a94c93c32a15 Mon Sep 17 00:00:00 2001 From: Satya Swaroop Panigrahi <63916892+swaroop0707@users.noreply.github.com> Date: Fri, 2 Oct 2020 07:55:34 +0530 Subject: [PATCH] Update snakegame.cpp --- snakegame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snakegame.cpp b/snakegame.cpp index 381943d..5968a80 100644 --- a/snakegame.cpp +++ b/snakegame.cpp @@ -15,6 +15,8 @@ int x,y,fruitx,fruity,score; int tailx[1000],taily[1000]; int ntail; +// movements + enum eDirection {STOP=0,LEFT,RIGHT,UP,DOWN}; eDirection dir;