GithubHelp home page GithubHelp logo

forki / marksix-parser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rexcfnghk/marksix-parser

0.0 3.0 0.0 497 KB

A Mark Six result parser written in F#

License: MIT License

F# 98.25% Batchfile 0.38% Shell 1.37%

marksix-parser's Introduction

marksix-parser Build status Build Status Coverage Status

A Mark Six result parser written in F#

Installation

This project uses Paket as the package manager and FAKE as the build automation tool.

Run build.sh (Mac/Linux) or build.cmd (Windows) to (actual FAKE targets used quoted in square brackets):

  • Install dependencies using Paket
  • Clean ./build/, ./tests/, and ./release/ directories [Clean]
  • Build the app (to ./build/) [BuildRunner]
  • Build the tests (to ./tests/) [BuildTests]
  • Run xUnit tests [RunTests]
  • Run OpenCover and save results (to ./tests/results.xml) [OpenCover]
  • Zip the artifact (to ./release/marksix-parser.zip) [Pack]

If you simply want to install dependencies and start developing, run .paket/paket.bootstrapper.exe and .paket/paket restore.

Local code coverage report can ge generated by ./build RunReportGenerator.

AppVeyor CI build and Travis CI build will also trigger OpenCover test coverage being sent to Coveralls

Sample output

Enter draw results
1
2
3
4
5
6
7
The draw results are DrawResults
  (DrawnNumber 1,DrawnNumber 2,DrawnNumber 3,DrawnNumber 4,DrawnNumber 5,
   DrawnNumber 6,ExtraNumber 7)
   
Enter user's #1 draw
1
2
3
4
5
6
Continue entering user's draw #2 [YyNn]?
n
User's draw #1: UsersDraw (1,2,3,4,5,6)
You entered 1 user's draw(s)
Your prize for draw #1 is First
Enter draw results
1
2
3
4
5
6
7
The draw results are DrawResults
  (DrawnNumber 1,DrawnNumber 2,DrawnNumber 3,DrawnNumber 4,DrawnNumber 5,
   DrawnNumber 6,ExtraNumber 7)
   
Enter user's #1 draw
1
2
3
4
48
49
Continue entering user's draw #2 [YyNn]?
n
User's draw #1: UsersDraw (1,2,3,4,48,49)
You entered 1 user's draw(s)
Your prize for draw #1 is Fixed prize of HK$640.00
Enter draw results
1
1
ErrorMessage "Adding duplicate elements"
2
3
4
5
6
50
ErrorMessage "Input out of range"
7
The draw results are DrawResults
  (DrawnNumber 1,DrawnNumber 2,DrawnNumber 3,DrawnNumber 4,DrawnNumber 5,
   DrawnNumber 6,ExtraNumber 7)
   
Enter user's #1 draw
1
2
3
4
48
49
Continue entering user's draw #2 [YyNn]?
y
Enter user's #2 draw
2
3
4
sdf
ErrorMessage "Input is not an integer"
5
6
7
Continue entering user's draw #3 [YyNn]?
n
User's draw #1: UsersDraw (1,2,3,4,48,49)
User's draw #2: UsersDraw (2,3,4,5,6,7)
You entered 2 user's draw(s)
Your prize for draw #1 is Fixed prize of HK$640.00
Your prize for draw #2 is Second

marksix-parser's People

Contributors

rexcfnghk avatar

Watchers

Steffen Forkmann avatar James Cloos avatar  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.