Home

Home   Downloads   Tutorial   Screenshots   Getting Started   FAQ   Support   RSS feed


Locations of visitors to this page

FormulaOne Sample Source Code

This page contains an assorted mix of Formula One sample source codes, listed in no particular order.

Some more source code samples:

Magic Squares


Rosetta Code Problems

Rosetta Code is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible. The following problems were posted on the Rosetta Code web site and solutions coded in various programming languages.
  • Pascal's Triangle Puzzle - Also known as "Pyramid of Numbers". Each brick of the pyramid is the sum of the two bricks situated below it.
  • Knapsack Problem - Pack a knapsack not to exceed maximum weight while maximizing the value. Multiple identical items not allowed.
  • Unbounded Knapsack Problem - Pack a knapsack not to exceed maximum weight while maximizing the value. Multiple identical items allowed.


  • Dell Logic Puzzles

    The following word puzzles were copied from Doug Edmund's web page Learn Constraint Logic Programming With Logic Puzzles. This page offers a nice introduction to solving logic puzzles and contains dozens of various word puzzles ranging from simple to difficult with corresponding solutions programmed in ECLiPSe and B-Prolog. By following the links below you can find some of these puzzles solved using Formula One. These puzzles present a unique opportunity to compare syntax of Formula One, B-Prolog and ECLiPSe. The number of stars shown reflects the puzzle difficulty.


    Enigma Problems

    The following "Enigma" problems were published by the New Scientist magazine.


    The sample programs were converted into HTML format by F1toHTML.
    If you would like to submit sample source code, contact support@f1compiler.com.




    AddThis Social Bookmark Button

    Last updated: June 27, 2010