Skip to content

F# hands on: build a 2048 bot with Canopy [San Francisco]

Photo of Mathias Brandewinder
Hosted By
Mathias B.
F# hands on: build a 2048 bot with Canopy [San Francisco]

Details

2048 is a fun (and very addictive) game that can be played on the Web:

http://gabrielecirulli.github.io/2048/

Canopy is an awesome F# UI web testing framework, built on top of Selenium:

http://lefthandedgoat.github.io/canopy/

Let's put them together, and build a simple bot that plays 2048, using Canopy! We will probably not be able to go THAT far, but with a bit of work, this is what you could end with (video has been accelerated "for dramatic purposes"):

http://youtu.be/sjGVEkzylUY

This session will be organized as an interactive workshop. Come over, and learn yourself some F# for great good! F# beginners are very welcome - it will be a great opportunity to see F# in action, and why it's awesome.

To get the most from the session please try and bring a laptop along with F# installed (ideally either Xamarin Studio, MonoDevelop or Visual Studio); you can find detailed instructions for OSX, Linux and Windows on fsharp.org (http://fsharp.org/).

To speed up the process a bit, you might also want to take a look at the Canopy documentation (http://lefthandedgoat.github.io/canopy/) beforehand, and maybe give it a spin before the session.

And if you've never used F# before and want a head-start, check the great online intro tutorials on TryFSharp.org (http://www.tryfsharp.org/Learn/getting-started).

Photo of The San Francisco F# User Group group
The San Francisco F# User Group
See more events
ThoughtWorks
315 Montgomery St 16th Floor, at Pine & Montgomery intersection. Entrance located on Montgomery street between the Dress Barn and Knoll stores. · San Francisco, CA