Moglby mi ktos wytlumaczyc czemu pokazuje blad przy "MoveX" oraz "Robot Robbie"
I czym moglbym zaradzic zeby te bledy zniknely?
Zadanie to mam znaleŹĆ lokacje Robbiego robota koncowa. :)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string robot = "Robot Robbie";
Robot Robbie = new Robot();
Robbie.xlocation = 1;
Robbie.ylocation = 1;
MoveRight();
MoveDown();
MoveDown();
MoveRight();
if (Robbie.ylocation < 4)
MoveUp();
else
MoveDown();
while (Robbie.xlocation < 6)
MoveRight();
}
}
}