Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Objects Methods Return Values

Continually get the treehouse prompt on the console when typing. No other result and no compiling error's listed.

Entering on console: mcs -out:TreehouseDefence.exe *.cs && mono TreehouseDefense.exe

also trying mcs -out:TreehouseDefence.exe *.cs

Here is my code for Game.cs: using System;

namespace TreehouseDefense { class Game { public static void Main() { Map map = new Map(8, 5);

        Point point = new Point(4,2);
        bool isOnMap = map.onMap(point);
        Console.WriteLine(isOnMap);

        point = new Point(8,5);
        isOnMap = map.onMap(point);
        Console.WriteLine(isOnMap);



    }
}

}

Thanks in advance!

1 Answer

mcs -out:TreehouseDefence.exe *.cs && mono TreehouseDefense.exe

You have "defense" spelt differently each time.