Skip to content

eddiePower/CodeReviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Code puzzle for a Company interview process.

The Problem:

Write a program that lets the user generate a shape with the dimensions of their choosing using a semi-natural language interface. Your solution must have two components – a “front-end” and a “back-end”. User Story As a user I want to generate shapes with natural language so that I don’t have to enter values in boxes Acceptance Criteria The user should specify what to draw using natural language. To keep things simple, we’ll fix the allowed format to the following: Draw a(n) with a(n) of (and a(n) of )

Program Description:

A natural language shape building application, it will take in natural english and build the desired shape. An Example would be "Draw a Rectangle with the width of 34 and a height of 322." Its main purpose is to show problem solving skills from a written description General C# syntax and code principals.

Shapes Supported in this version:

  • Rectangle, width x height
  • Square, width x height
  • Circle, width x height
  • Oval, width x height
  • Triangle, width x height

Class's so far:

  • ShapeDrawerPageViewModel - main View model owns the below view models in some way,
  • ShapeDrawerViewModel - will rename to differ from above name. Will Draw the shape entered on front end by user,
  • TextInputViewModel - Handles the text input from user front end, splits string, checks for keywords and process and pass to shape drawer,
  • ShapesModel - properties for shapes, override creation of shapes from base shape to specific Ellipse, Rectangle, Polygon
  • ObservableObject - uttil class for UI updates, NotifyPropertyChanged Sub Class.

About

Eddie Powers July 2018 submission for a Code Review on Puzzle submission.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages