Skip to content

Pokémon in reverse - a Haskell game created at Paddle's 2nd Hackathon (March 2018)

License

Notifications You must be signed in to change notification settings

maartenJacobs/nmkp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmkp

nmkp is a small game written in Haskell for Paddle's 2nd Hackathon, which took place on March 2nd of 2018. It was originally a single file application, not including assets.

Notes

  • Haskell's sum types made adding states to the game immensely simple. Even late into the hackathon, adding a new screen or more complex feature was a breeze, and hardly ever affecting any other functionality. This was mainly due to the errors and warnings the compiler displays when building the application, i.e. mentioning when a case is unimplemented.
  • Working with record types often resulted in immensely long parameters, e.g. world@World{state = state, battle = Just battle, …}. A few syntactic extensions were tried out to alleviate this problem, although the situation could still be improved, at least partially, using better datatypes, e.g. World | WorldBattle.

Credit

About

Pokémon in reverse - a Haskell game created at Paddle's 2nd Hackathon (March 2018)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published