Extending a playing cards library

I’m wanting to develop a library that lets you do playing manipulation, with commands such as:


I’m building on the work from https://github.com/atomantic/JavaScript-Playing-Cards and am wanting to develop my library as an extension to the jQuery library that they have there.

Currently I’m using method chaining, but have been considering the possibility of partial application or currying, or other functional techniques to use in building up the library.

I don’t want the final (hand) call to be a megalithic function, but I’m not sure if supporting looping of multiple card deals can be achieved in any other way.

This is a call for advice and ideas on the development directions I could usefully take from here.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.