Re: [Haskell-cafe] Card games

2009-12-03 Thread Matthias Görgens
Hi Tom, Did you make any progress on your Dominion quest? I guess you could start by modeling `Big Money' and add the other cards (and interaction) from there. Also I guess there is a common baseline of things that are inherent in a lot of card games --- mechanics that cards support: Shuffling,

Re: [Haskell-cafe] Card games

2009-12-03 Thread Tom Tobin
2009/12/3 Matthias Görgens matthias.goerg...@googlemail.com: Hi Tom, Did you make any progress on your Dominion quest?  I guess you could start by modeling `Big Money' and add the other cards (and interaction) from there. No, I'm still trying to tune a partitionM function I wrote. (I'm

Re: [Haskell-cafe] Card games

2009-12-03 Thread Daniel Fischer
Am Donnerstag 03 Dezember 2009 19:23:24 schrieb Tom Tobin: 2009/12/3 Matthias Görgens matthias.goerg...@googlemail.com: Hi Tom, Did you make any progress on your Dominion quest?  I guess you could start by modeling `Big Money' and add the other cards (and interaction) from there. No,

Re: [Haskell-cafe] Card games

2009-12-03 Thread Joe Fredette
Yah! We like helping! On Dec 3, 2009, at 2:37 PM, Daniel Fischer wrote: Am Donnerstag 03 Dezember 2009 19:23:24 schrieb Tom Tobin: 2009/12/3 Matthias Görgens matthias.goerg...@googlemail.com: Hi Tom, Did you make any progress on your Dominion quest? I guess you could start by modeling `Big

Re: [Haskell-cafe] Card games

2009-12-03 Thread Tom Tobin
On Thu, Dec 3, 2009 at 1:37 PM, Daniel Fischer daniel.is.fisc...@web.de wrote: Am Donnerstag 03 Dezember 2009 19:23:24 schrieb Tom Tobin: No, I'm still trying to tune a partitionM function I wrote. Maybe we can help? Sure; should I post it to haskell-beginners?

Re: [Haskell-cafe] Card games

2009-12-03 Thread Daniel Fischer
Am Donnerstag 03 Dezember 2009 21:24:11 schrieb Tom Tobin: On Thu, Dec 3, 2009 at 1:37 PM, Daniel Fischer daniel.is.fisc...@web.de wrote: Am Donnerstag 03 Dezember 2009 19:23:24 schrieb Tom Tobin: No, I'm still trying to tune a partitionM function I wrote. Maybe we can help? Sure;

Re: [Haskell-cafe] Card games

2009-12-03 Thread Tom Tobin
On Thu, Dec 3, 2009 at 2:29 PM, Daniel Fischer daniel.is.fisc...@web.de wrote: Am Donnerstag 03 Dezember 2009 21:24:11 schrieb Tom Tobin: On Thu, Dec 3, 2009 at 1:37 PM, Daniel Fischer daniel.is.fisc...@web.de wrote: Am Donnerstag 03 Dezember 2009 19:23:24 schrieb Tom Tobin: No, I'm still

[Haskell-cafe] Card games

2009-11-07 Thread Felipe Lessa
Hi! I would like to know if anybody has already thought of or tried to code an EDSL for card games. Ideally you should be able to write the rules the games and get for free: - Game generator: given an input deck, construct the initial state of the game. - Random game generator: besides

Re: [Haskell-cafe] Card games

2009-11-07 Thread Joe Fredette
You might peek at my library HCard (it's on Hackage), it uses associated datatypes to allow for a very general playing-card interface. It was only ever a toy to play w/ Assoc. types for me, but I imagine it could be a decent starting point for someone interested in turning it into a real

Re: [Haskell-cafe] Card games

2009-11-07 Thread Stephen Tetley
Hi Felipe Close (or maybe not...), Martin Erwig and Eric Walkingshaw have a few papers on embedding a DSL in Haskell for game theory available from Martin's web site: http://web.engr.oregonstate.edu/~erwig/papers/abstracts.html Best wishes Stephen 2009/11/7 Felipe Lessa

Re: [Haskell-cafe] Card games

2009-11-07 Thread Matthias Görgens
Hi Felipe, Interesting idea. But I guess you should clarify what kind of card games you want to support. E.g, a DSL for trick taking games like Bridge, Skat or Doppelkopf might be different from one that's good for Canasta or Rummy. Or do you aim at Solitaire? I'd suggest starting with a very

Re: [Haskell-cafe] Card games

2009-11-07 Thread Felipe Lessa
On Sat, Nov 07, 2009 at 08:46:07AM -0500, Matthias Görgens wrote: Interesting idea. But I guess you should clarify what kind of card games you want to support. E.g, a DSL for trick taking games like Bridge, Skat or Doppelkopf might be different from one that's good for Canasta or Rummy. Or

Re: [Haskell-cafe] Card games

2009-11-07 Thread Tom Tobin
On Sat, Nov 7, 2009 at 8:07 AM, Felipe Lessa felipe.le...@gmail.com wrote: On Sat, Nov 07, 2009 at 08:46:07AM -0500, Matthias Görgens wrote: Interesting idea.  But I guess you should clarify what kind of card games you want to support.  E.g, a DSL for trick taking games like Bridge, Skat or