Skip to content

Technical test & my first time using C# & .NET Core.

Notifications You must be signed in to change notification settings

darrentaytay/triangular

Repository files navigation

Triangular

My friend received this as a technical test to be developed as a C# Web API endpoint with an optional JavaScript front end and I fancied having a crack.

This is my first dive into C# and the .NET environment.

Tech Used

Backend

  • C#
  • .NET Core 2.2
  • NuGet

Frontend

  • Node & NPM
  • Laravel Mix
  • Vue
  • SCSS

Testing

  • XUnit
  • Moq

The Test

1.A - The task, calculate the triangle coordinates for an image with right triangles such that for a given row (A-F) and column (1-12) you can produce any of the triangles in the layout below:

Grid

Each non-hypotenuse side of the triangle is as follows:

Triangle Sizes

1.B - Lastly, given the vertex coordinates, calculate the row and column for the triangle:

Vertices

About

Technical test & my first time using C# & .NET Core.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published