Playable Tetris mini-game. Use arrow keys to move left and right and up to rotate, down to drop. Try it out in the browser on TryFSharp.org
18 people like thisPosted: 13 years ago by Phillip Trelford
Simple times table console based game.
3 people like thisPosted: 13 years ago by Phillip Trelford
Pong video game runnable inside TryFSharp.org. Player 1 keys 'Q' - up, 'A' - down. Player 2 keys 'P' - up, 'L' - down.
7 people like thisPosted: 12 years ago by Phillip Trelford
This code illustrates Bayes' Theorem in action on the Let's Make a Deal problem (aka Monty Hall Problem), which several authors have used to illustrate Bayes' Theorem. (It's easy to search the internet for further explanation.) Run with the audit option to audit up to the first 100 games. Running without audit is faster and can simulate a couple billion games.
5 people like thisPosted: 12 years ago by Jack Fox
Solution to Minesweeper Kata challenge at Goto Copenhagen 2012 conference "Programming with the Stars" track.
4 people like thisPosted: 12 years ago by Phillip Trelford
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 thisPosted: 12 years ago by Phillip Trelford
Single level retro game playable inside TryFsharp using the cursor keys.
9 people like thisPosted: 12 years ago by Phillip Trelford
Quick & dirty solution to Reversi kata: http://codingdojo.org/cgi-bin/wiki.pl?KataReversi
1 people like thisPosted: 12 years ago by Phillip Trelford
Click on the tsunami.io button below to launch the online tsunami.io IDE with this snippet. Then select all the code (CTRL+A) and hit the Run button to start the game window, then just dock the window to the right of the code.. Click in the game window to launch missiles and save your cities.
3 people like thisPosted: 11 years ago by Phillip Trelford
Small quiz-game with World Bank TypeProvider (from FSharp.Data Nuget-package): Which country has the capital city of (random capital)? (Three options)
3 people like thisPosted: 10 years ago by Tuomas Hietanen
Word guessing game using ASCII art.
10 people like thisPosted: 10 years ago by Phillip Trelford
Game evolution
2 people like thisPosted: 9 years ago by Paul Orland
Flappy bird clone script using MonoGame, click the mouse or hit space to flap, no collision detection.
3 people like thisPosted: 9 years ago by Phillip Trelford
Flappy bird clone script using Mono's Xwt toolkit, click the mouse or hit space to flap, no collision detection. To run you will need to build xwt from source https://github.com/mono/xwt
3 people like thisPosted: 9 years ago by Phillip Trelford
PacMan maze view runnable inside TryFSharp.org
2 people like thisPosted: 5 years ago by Phillip Trelford
I'm bad at math and writing this code down helped me to understand what's up with this counter intuitive problem.
4 people like thisPosted: 3 years ago by Julien Di Lenarda
This program is written in only 99 lines of actual code and remains enough readability. I used few short-coding technics. 1. no XAML. 2. pre-calculate every useful data for the purpose of eliminating useless states 3. using record type with set property as an alternative of view-model 4. initialize everything in one place. 5. encapsulate all states in one place.
17 people like thisPosted: 13 years ago by nagat01
Shuffles a deck of cards, deals 2 hands applying punto banco rules before declaring a winner or a tie.
4 people like thisPosted: 12 years ago by Phillip Trelford
TicTacToe game simulator implemented by using Joinads(http://tomasp.net/blog/joinads-async-prog.aspx). Game logic in this snippet was simplified so nicely by using Joinads. You can run this snippet on Try Joinads (http://tryjoinads.org/).
4 people like thisPosted: 12 years ago by nagat01
Zombie state machine code sample. Use arrow keys to move humanoid. Robots activate when in range of humanoids. Try it out in the browser with TryFSharp.org.
6 people like thisPosted: 12 years ago by Phillip Trelford
Solution to Minesweeper Kata second challenge at Goto Copenhagen 2012 conference "Programming with the Stars" track. Runnable at http://tryfsharp.org.
2 people like thisPosted: 12 years ago by Phillip Trelford
Simple implementation of Conway's Game of Life for the TryF# web site.
0 people like thisPosted: 12 years ago by Tomas Petricek
Conway's Game of Life example at F#unctional Londoners July 2012 meetup.
2 people like thisPosted: 12 years ago by Phillip Trelford
Reversi Kata solution from February 2013 London F# Meetup Coding Kata.
5 people like thisPosted: 11 years ago by Phillip Trelford
WPF version of Missile Command. Run as a script in Visual Studio or create a new application project, reference the assemblies listed at the top of the script and paste the code over Program.fs and hit F5.
8 people like thisPosted: 11 years ago by Phillip Trelford
Simple implementation of the popular game "2048". Can you add up the tiles and reach 2048? The game can be played in fsi or you can add the GUI which is so far missing.
7 people like thisPosted: 10 years ago by Tore Green
Game evolution
0 people like thisPosted: 9 years ago by Paul Orland
Flappy bird clone script using WPF, click the mouse or hit space to flap, no collision detection.
6 people like thisPosted: 9 years ago by Phillip Trelford
My Game in F#, creates the five times table up to 100 and then selects a random number from it. You then guess the number
1 people like thisPosted: 9 years ago by Dom Finn
When running the kRPC Remote Procedure Call Server in a Kerbal Space Program game the kRPC C# Client can be accessed from within F# Interactive in Visual Studio. Learn more about the game here http://www.kerbalspaceprogram.com. Official kRPC C# Client documentation can be found here http://djungelorm.github.io/krpc/docs/csharp/client.html. Note: This snippet was (re-)uploaded because the original (http://fssnip.net/8qR) went lost.
2 people like thisPosted: 8 years ago by Robert Nielsen
When playing rock-paper-scissors (RPS), we show 0 fingers for rock, 2 for scissors and 5 for paper. This rule is also applied for this console-based game written in F#. Enjoy !
0 people like thisPosted: 4 years ago by me
Flappy bird clone script using WinForms, click the mouse or hit space to flap, no collision detection.
6 people like thisPosted: 2 years ago by Phillip Trelford