Author Topic: FiM++  (Read 3645 times)

Offline Rylius

  • Administrator
  • Regular Member
  • *****
  • Posts: 60
  • Gender: Male
  • Silly Filly
    • Hazewood.de - Game Development
FiM++
« on: 2012-October 05, 08:29:39 »

Offline Compony

  • Administrator
  • Regular Member
  • *****
  • Posts: 26
  • Crazy pony
Re: FiM++
« Reply #1 on: 2012-October 05, 09:35:38 »
FiM++ Jam - Create an actually usable program in FiM++

Offline DuckOfDoom

  • Regular Member
  • **
  • Posts: 20
  • Gender: Male
  • (❍ᴥ❍)
Re: FiM++
« Reply #2 on: 2012-October 05, 10:21:50 »
Ponify ALL the things!

Offline jigpu

  • New Foal
  • *
  • Posts: 8
  • poni.
Re: FiM++
« Reply #3 on: 2012-October 08, 06:53:33 »
FiM++ Jam - Create an actually usable program in FiM++
Does making a program to list all the primes (sans 2) count? :D

JigPu

Offline Vanni

  • Regular Member
  • **
  • Posts: 27
  • Gender: Male
  • ʇxǝʇ lɐuosɹǝd
Re: FiM++
« Reply #4 on: 2012-October 16, 14:29:10 »

Offline Oracion

  • Regular Member
  • **
  • Posts: 12
  • Blank flank
Re: FiM++
« Reply #5 on: 2012-October 16, 21:47:51 »
Well, this was fun. I made a function that calculates the x-th fibonacci number in FiM++.

( public class "A letter about fibonacci numbers" { )
Dear Princess Celestia : A letter about fibonacci numbers

( double fibonacci(double position) { )
I learned the fibonacci number with a number using a number position:

( if (position == 0) { return 1; } )
If position was 0 then:
Then you get 1!
That's what I would do.

( if (position == 1) { return 1; } )
If position was 1 then:
Then you get 1!
That's what I would do.

( double "the previous one" = fibonacci(position - 1); )
Did you know that the previous one is a number?
The previous one is the fibonacci number using position minus 1!

( double "the one before the previous one" = fibonacci(position - 2); )
Did you know that the one before the previous one is a number?
The one before the previous one is the fibonacci number using position minus 2!

( double "the resulting number" = "the previous one" + "the one before the previous one"; )
Did you know that the resulting number is a number?
The resulting number is the previous one added to the one before the previous one!

( return "the resulting number"; )
Then you get the resulting number!

( } )
That's all about the fibonacci number.

( main() { )
Today I learned how to calculate fibonacci numbers recursively:

( double "the position of the desired number"; )
Did you know that the position of the desired number is a number?

( "the position of the desired number" = read(); )
I heard the position of the desired number.

( write(fibonacci("the position of the desired number")); )
I sang the fibonacci number using the position of the desired number.

( } )
That's all about how to calculate fibonacci numbers recursively.

( } )
Your faithful student, Twilight Sparkle



Offline Wishdream

  • Regular Member
  • **
  • Posts: 37
  • Gender: Male
  • HeoLix Leader
    • HeoLiX Headquarters
Re: FiM++
« Reply #6 on: 2012-October 17, 11:29:02 »
Wow... that's a lot to type.
Wishdream - Game Developer, Lead of HeoLiX
Game Maker Mentor and Teacher, FM2k2nd Developer, Game Art Designer and Natural Java Programmer
Also, called the Death Developer of the GMC
Part of the IGDA Manila

Hmm... Need something from me? Just PM me okay?
Entered Ludum Dare 2 times.

Offline Vanni

  • Regular Member
  • **
  • Posts: 27
  • Gender: Male
  • ʇxǝʇ lɐuosɹǝd
Re: FiM++
« Reply #7 on: 2012-October 17, 12:18:27 »
Wow... that's a lot to type.

That's the fun part! :P

More seriously, using FiM++ improve your English in a way, so it's not that bad.

Offline Rylius

  • Administrator
  • Regular Member
  • *****
  • Posts: 60
  • Gender: Male
  • Silly Filly
    • Hazewood.de - Game Development
Re: FiM++
« Reply #8 on: 2012-October 17, 23:37:19 »
Here's the most advanced interpreter (apparently): https://github.com/KarolS/fimpp

Just wrote a small Hello Equestria script. Took me waaaay too long to figure out though!