Snippets tagged kata

  • Minesweeper Kata

    Solution to Minesweeper Kata challenge at Goto Copenhagen 2012 conference "Programming with the Stars" track.

    4 people like this

    Posted: 11 years ago by Phillip Trelford

  • Minesweeper Tweet

    Minesweeper computation Kata as a tweet (140 characters) not counting code to open namespace and to prepare field as a 2D array.

    6 people like this

    Posted: 11 years ago by Phillip Trelford

  • FizzBuzz with Rule Engine

    Inspired by http://dave.fayr.am/posts/2012-10-4-finding-fizzbuzz.html Rules are in a list of lambdas that can be easily modified. A pattern-matching recursive function applies them in the correct order.

    7 people like this

    Posted: 11 years ago by Richard Broida

  • Coding Kata: Score a Bowling Game

    Score a Bowling game. The game is represented as a list of integers. A game of bowling consists of ten frames. In each frame, the bowler will have two chances to knock down as many pins as possible with his bowling ball. If a bowler is able to knock down all ten pins with the first ball, he is awarded a strike. If the bowler is able to knock down all 10 pins with the two balls of a frame, it is known as a spare. Bonus points are awarded for both of these, depending on what is scored in the next 2 balls (for a strike) or 1 ball (for a spare). If the bowler knocks down all 10 pins in the tenth frame, the bowler is allowed to throw 3 balls for that frame. This allows for a potential of 12 strikes in a single game, and a maximum score of 300 points, a perfect game.

    4 people like this

    Posted: 11 years ago by Cesar Mendoza

  • Reversi Kata solution

    Reversi Kata solution from February 2013 London F# Meetup Coding Kata.

    5 people like this

    Posted: 11 years ago by Phillip Trelford

  • Bank OCR

    User Story 1 from the Bank OCR Kata: http://codingdojo.org/cgi-bin/wiki.pl?KataBankOCR

    1 people like this

    Posted: 10 years ago by Phillip Trelford

  • Official SkillsMatter 2013 F# Tutorials Programming with the Stars Code Snippet

    SkillsMatter 2013 F# Tutorials Programming with the Stars Code Snippet

    1 people like this

    Posted: 10 years ago by Rickasaurus

  • FizzBuzz in F# by Embedding a Domain-Specific Language

    This is a translation to F# of the Haskell code in the article "FizzBuzz in Haskell by Embedding a Domain-Specific Language" by Maciej Piróg The original article is located here: http://themonadreader.files.wordpress.com/2014/04/issue23.pdf The idea is to help people familiar with F# but not with Haskell to follow the article.

    1 people like this

    Posted: 9 years ago by Cesar Mendoza