Phil Trelford's Array
POKE 36879, 255

Mastermind F# WPF Game Sample

October 13, 2008 14:28 by Phil

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)

Categories: F# | WPF
Actions: E-mail | Permalink | Comments (4) | Comment RSSRSS comment feed


July 3. 2009 13:13

Art Scott

Thanks Phil.

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

Created against F# v, 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.

Art Scott

July 19. 2009 11:45


Pingback from

Rick Minerich's Development Wonderland : Discoveries This Week 07/19/2009

May 4. 2010 23:43


Pingback from

car insurance cheap quote «  End Year 2012

July 5. 2012 19:27


Pingback from

Video: Does GM Have a Case of ‘Eurosis’? | Star Football Live

Add comment

(Will show your Gravatar icon)

  Country flag

  • Comment
  • Preview