This is an example repo corresponding to multiple lessons within the LearnHowToProgram.com walkthrough on creating a Shape Tracker application in the C# and .NET Pre-Work: Basic Console Applications. The functionality in the C# Shape Tracker app is meant to match the JavaScript Shape Tracker app that Epicodus students created in the Intermediate JavaScript course.
There are multiple branches in this repo that are described more below.
- Clone this repo.
- Open your shell (e.g., Terminal or GitBash) and navigate to this project's production directory called "ShapeTracker".
- Run
dotnet run
in the command line to run the console app. Since this is a console application, you'll interact with it through text commands in your terminal. Take note that the user interface will vary from branch to branch. - Optionally, you can run
dotnet build
to compile this console app without running it.
1_basic_console_app_structure: This is the default branch with the starter code for the Shape Tracker project as a C# console application. This branch includes the code we added after working through the following lessons:
- https://www.learnhowtoprogram.com/c-and-net/basic-console-apps/expectations-and-game-plan-for-building-a-c-console-app
- https://www.learnhowtoprogram.com/c-and-net/basic-console-apps/hello-world-compiling-and-executing-c-programs
- https://www.learnhowtoprogram.com/c-and-net/basic-console-apps/the-shape-tracker-project-structure
- https://www.learnhowtoprogram.com/c-and-net/basic-console-apps/classes-and-namespaces
2_basic_triangle_class: This branch includes the code we added after working through the following lessons:
- https://www.learnhowtoprogram.com/c-and-net/basic-console-apps/class-fields-and-constructors
- https://www.learnhowtoprogram.com/c-and-net/basic-console-apps/class-methods
3_encapsulating_fields: This branch includes the code we added after working through the following lessons:
- https://www.learnhowtoprogram.com/c-and-net/basic-console-apps/access-modifiers-best-practices-with-fields-and-getter-and-setter-methods
- https://www.learnhowtoprogram.com/c-and-net/basic-console-apps/apie-encapsulation
4_static_class_members: This branch includes the code we added after working through the following lesson:
5_console_user_interface: This branch includes the code we added after working through the following lesson:
6_class_properties: This branch includes the code we added after working through the following lesson: