Someone
public text v1 · immutable#include <ncurses.h>
#include <stdio.h>
char a[3][3];
int
main ()
{
int time, n = 1;
char b;
initscr ();
cbreak ();
noecho ();
b = getch ();
for (time = 0; time < 3; time++)
{
if (b=='s' && n == 1)
{
a[time][1] = '*';
n = 0;
printf("%c\n", a[time][1]);
sleep (400);
}
else if ((b=getch())=='s' && n == 0)
{
a[time-1][1]=' ';
a[time][1] = '*';
printf("%c\n", a[time][1]);
sleep (400);
}
}
}