Phillip Trelford's Array

POKE 36879,255

Mastermind F# WPF Game Sample

While playing around with the F# September CTP over the last week, I made a short, <300 lines, implementation of the Mastermind board game using some Windows Presentation Foundation (WPF) controls. I've been impressed with the integration of F# with Visual Studio 2008 with project references and property pages now in place. It also seems pretty easy to wire up a usable UI using the WPF controls event without XAML. Anyway you can view the source on the F# wiki or download it below and have a play.

Mastermind.fs (13.69 kb)

Comments (1) -

  • Art Scott

    7/3/2009 1:13:37 PM |

    Thanks Phil.

    I'm always looking for F# & WPF and/or Sliverlight info.

    Created against F# v 1.9.6.16, VS 2008, .NET 3.5,
    needed to add ref to System.Xml 2.0 ...

    Looking forward to trying against VS 2010 and .NET 4.
    Interested in any Sliverlight insight, esp. re:/vs. WPF.

Pingbacks and trackbacks (3)+

Comments are closed