Giter Club home page Giter Club logo

fmaze's Introduction

FMaze - A .NET functional console game

F# project for december 2019, currently maintained by:

License

GNU General Public License v3.0, please refer to LICENSE or to the last LICENSE file inside the last commit of this repository, if the repository is unavailable please refer to the last electronic of phisical copy you currently have access to, if you dont have access to any copy of the license ask the person, team or company that provided you with this program, if no copy of the license can be obtained please refer to the GNU GENERAL PUBLIC LICENSE v3.0 that can be found online.

Code standards:

Our code should follow some basic rules in order to make it more readable.

CONSTANTS

Constants names should be upper-case, multiple words should be divided by an underscore

for example:

let ROWS = 3
let COLUMNS =7
let COLOUR_WALL = ConsoleColor.White
let WALL_CONNECTION_LEFT = '┤'

VARIABLES

Variables names should be lower-case, multiple words should be divided by an underscore

for example:

let test = 6
let maze_tot = generate ROWS COLUMNS 3

FUNCTIONS

Function names should be lower-case, multiple words should be divided by an underscore

for example:

let rec generate rows cols chunk =
      match chunk with
      | 1 -> let gen = (generate_maze (generate_map rows cols))
             printfn "Generating chunk n°%A" chunk
             gen
      | _ -> let gen = (connect_default (generate rows cols (chunk-1)) (generate_maze (generate_map rows cols)))
             printfn "Generating chunk n°%A" chunk
             gen

FILES

Files names must begin with a capital letter and match the main module (or namespace) defined in the file. Files must be ordered from the more general ones to the more specific, the last file in the solution explorer must me the [<EntryPoint>]

for example:

Maze.fs
Utils.fs

COMMENTS

Comments should follow the XML standard used for .NET projects. The documentation is generated at compile time using DocFX.

   ///<summary>Gets the cell at the specified index in the given Maze.</summary>
   ///<param name="position">The index of the desired element in the maze</param>
   ///<param name="maze">The maze to select the element from</param>
   ///<returns>The cell at the specified index</returns>
   let get_cell (position:int) (maze:MazeType):CellType =

fmaze's People

Contributors

donnyz avatar epmatt avatar redz-caiif avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.