Skip to content

A humble solution to the second bonus homework of FP Spring 2018

Notifications You must be signed in to change notification settings

talha252/fp2018_bonus2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

A humble solution to Bonus2

This is a solution to Bonus2 homework of FP course. The solution is far from perfect. Even tough it runs without an error and satisfies all of the requirements given in the assignment, it has many issues. You can see this repository as a baseline solution to the problem. We encourage you to SEND PULL REQUEST to improve the quality of code. Also, we suggest you to follow (click Watch) this repository as there will be improvements. Here are some problems you might want to fix:

  • removeCard function can be simplified
  • GameState type is not defined.
  • runGame function can be simplified with new GameState type.
  • readCards and readMoves functions can be improved.

You are not bounded only to these problems, feel free to change anywhere else in the code if you see an improvement. You can even rewrite the functions with higher order functions to get rid of annoying recursions. If you are not familiar with concept of 'Sending Pull Request', you can look at this link

Testing

You can use calico to test the program. To run the tests (in main directory):

calico ./test/solitaire.yaml

About

A humble solution to the second bonus homework of FP Spring 2018

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published