GithubHelp home page GithubHelp logo

die-roll-net-core's Introduction

Note:

This project makes use of the Numpy.NET library (A .NET wrapper of Python's numpy library) to handle the choosing of the weighted probabilities.

Relevant files:

  • readme.md
  • Pages -> Index.cshtml
  • Pages -> Index.cshtml.cs
  • data -> output.csv

Areas for improvement are below:

I've create a simple web application to the specs of the take home-assignment. However, given more time or if this app was to be productionalize - for a more robust application the following backlog items should be made.

  • Add unit test for RollTheDie() method. Using XUnit or NUnit framework.
  • Reduce the amount of type casting (likely by using more classes or restructuring code)
  • Make faces array an enum, since it'll never change
  • Use List instead of Array to make use of .Sum method and lambda functions for cleaner code. And to reduce number of for-loops.
  • Validate UI input (required input, and limit numerical values for "faces")
  • Also print out the values back to the View, in addition to the the output.csv file
  • Abstract the RollSettings() class into separate file, I've left it in the same index.cshtml.cs file to simplify the project.

These changes may require several more hours of coding. And in keeping concious of time, I've listed them here instead as a backlog.

die-roll-net-core's People

Contributors

tanyado avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.