I am very new to programming and im trying to create a simple stick figure that walks across the screen. I cant seem to figure out how to make him walk across. Any help would be great. THanks guys
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace exercise
{
class Program
{
static void Main(string[] args)
{
string head1 = " 0 ";
string body1 = "!T!";
string legs1 = "/ \\";
string legs2 = " | ";
string numberOfSpaces = "";
bool legsShouldPrint = true;
Console.WriteLine(head1);
Console.WriteLine(body1);
for (int i = 0; i < 72; i++)
{
Console.Clear();
Console.WriteLine(" " + head1);
Console.WriteLine(" " + body1);
if (legsShouldPrint)
{
Console.WriteLine(legs1);
}
else
{
Console.WriteLine(legs2);
}
legsShouldPrint = !legsShouldPrint;
Thread.Sleep(80);
}
Console.ReadLine();
}