This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
(* Low-level F# implementation *) | |
let newRandomChar getRandomInt (chars : char[]) = | |
let idx = getRandomInt() | |
chars.[idx] | |
let newRandomWord (getRandomChar : unit -> char) length = | |
let chars = | |
Array.init length (fun _ -> getRandomChar()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CleverRake.XnaUtils | |
open Microsoft.Xna.Framework | |
open System.Threading | |
type IFramePerSecondCounter = | |
abstract FramesPerSecond : float | |
/// An update-able and drawable game component which performs light updates on the main thread, | |
/// then draws on a separate thread in parallel of more computation-heavy updates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
* Filter a specified file into a second file | |
* Onorio Catenacci | |
* 21 October 2011 | |
*) | |
#r "System.dll" | |
open System.IO | |
//Remember: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Learn more about F# at http://fsharp.net | |
open System.Collections.Generic | |
let width = 7 | |
let height = 6 | |
let maxDepth = 7 | |
let orangeWins = 1000000 | |
let yellowWins = -orangeWins | |
let debug = ref true |