-1

Imagine the classic 2d RPG game that has many instances of players that can change their positions, HP, inventory, skill-values, death lists and so on every time.

Tibia Client

How would an immutable language approach the design of such game? That is, would the immutability factor limit the development as the game is something that is always changing, or could it be used to design that game as effectively as in a traditional language?

Community
  • 1
  • 1
MaiaVictor
  • 51,090
  • 44
  • 144
  • 286
  • 1
    http://stackoverflow.com/questions/3293059/immutable-game-object-basic-functional-programming-question – Alex W Jun 26 '12 at 22:58

1 Answers1

0

Have a look at Functional Reactive Programming. Its key concepts are signals and events, which represent values that change in time.

There is a list of various Haskell frameworks and resources here at Haskell Wiki.

I'm not sure if it will directly help you to create a game, but I believe learning FRP concepts and ideas will give you new valuable insights.

Community
  • 1
  • 1
Petr
  • 62,528
  • 13
  • 153
  • 317