on 8/5/2015 3:11 PM
This is the first post in a series where we'll walk through creating the card game Crazy Eights in F#. Playing cards are a fairly well known domain and, despite the name, Crazy Eights is quite easy to understand. In this post we'll walk through modeling the domain. Modeling our Domain Crazy Eights is played with a standard 52 card deck which means we have Deuce through Ace and the four suits but no Jokers. To model these cases we'll use two Discriminated Unions, one for Suit and one for Rank. type Su[...]
>> Read the full article on reidev275.azurewebsites.net
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper