Sign in to follow this  

Functional Programming

This topic is 3588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone. I need to do a project for a class using Microsoft F# which is a functional programming language. I'd like to build some kind of tool that could be used in game creation. Problem is, the only thing I can think of that relates to game creation is some type of compiler and the only thing I can think of close to functional programming is a calculator. Anyone have any ideas as to any other project ideas I could try? I would appreciate anything. (Btw, currently I'm thinking of doing some kind of script compiler in it (custom scripts))

Share this post


Link to post
Share on other sites
Answered another way, all(most?) programming languages are "Turing Complete". This means that, logically, all languages are equivalent in terms of what you can compute with them. The difference is simply that certain things are easier to do in one language than another.

-me

Share this post


Link to post
Share on other sites
There's all sorts of non-compiler game programming tools. Examples include: custom resource tools (resource packages, combining textures), custom editors (GUI front ends for XML data, conversation editors, syntax highlighting editor for a non-conventional scripting language), map editors, sprite editors, etc., etc. The number of steps between zero and a finished game is pretty big and coding is only a small fraction of them.

Share this post


Link to post
Share on other sites
After cruising some F# forums I realized F# could potentially do what C# can. I think I forgot to mention one of the focuses of the project is to build an application that shows the features of F# and why it is best suited for that type of program. Granted, you could build the same app in 100 languages and each have why it's best in that language and why it's bad in that language.

Spearhawk, I have seen some examples online of the raytracer but thanks for the comment about it. I've seen some examples using DirectX and such as well (again just proving what everyone else said that if it's code-able in C# it's probably doable in F#).

Share this post


Link to post
Share on other sites
I'm of the opinion that virtually any decently complicated application can demonstrate the advantages of functional programming. But some types will be much easier than others for the beginning functional programmer.

Might I suggest a radiosity-based lightmap generator? The generation of lightmaps is, at its core, a recursive operation; it's an actually useful tool in game development; and it's not particularly difficult, once you get geometry loading done. Also, it can be made as complex as you want with spatial culling structures and the like.

Share this post


Link to post
Share on other sites

This topic is 3588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this