5

I'm looking for Einstein's Riddle solution using F# and I've found only Einstein meets F#.

Is F# suitable for this problem and are there any other implementations?

false
  • 10,264
  • 13
  • 101
  • 209
Pavel Hodek
  • 14,319
  • 3
  • 32
  • 37
  • @BlueRaja-DannyPflughoeft Closed for: "It's difficult to tell what is being asked here." ??? In question are links to problem definition and to one solution using F#. I'm looking for another probably better. What's the problem with this question? – Pavel Hodek Apr 26 '12 at 21:41
  • 5
    Please see the [faq](http://stackoverflow.com/faq). There is no indication of prior effort in solving the problem, and in fact no real question about it. You are essentially just requesting that someone write the code for you - those sorts of requests are off-topic here. – BlueRaja - Danny Pflughoeft Apr 26 '12 at 21:46
  • 3
    I don't want anyone to write code for me. No prior effort of solving - I only want to see any real and useful solution using F# to make idea about language power. I don't care much about Einstein's Riddle. – Pavel Hodek Apr 26 '12 at 21:56
  • 3
    *"I don't care much about Einstein's Riddle"* - which is why this was closed. *"Show me your code"* is [also off-topic](http://stackoverflow.com/faq#dontask). – BlueRaja - Danny Pflughoeft Apr 26 '12 at 21:58
  • I disagree with you. How to learn language without any piece of code to study? – Pavel Hodek Apr 26 '12 at 22:03
  • @Pavel : SO is not here to teach you to code, that's the point you're missing. SO is here to give _specific_ answers to _specific_ questions. – ildjarn Apr 26 '12 at 22:54
  • 1
    My question is specific, on-topic, and perfectly valid with [FAQ](http://stackoverflow.com/faq). Try to read FAQ again and think. Google provided me only one link (hard to find) to F# algorith solving the problem. If this question or answer is useful for you (anyone), please try to reopen my question. Thank you. – Pavel Hodek Apr 27 '12 at 06:15
  • @PavelHodek - Perhaps you should take this up on meta - http://meta.stackoverflow.com/ – John Palmer Apr 27 '12 at 11:41
  • 1
    @PavelHodek If you're trying to learn F#, there are some terrific resources for it. Reply to my comment and I'll be happy to share them. But as it stands right now, your question (unintentionally, I'm sure) sounds as if it's saying "I want someone to write this code for me and I haven't even tried it yet." People are telling you that you should try something yourself first and then when you run into something you don't understand ask about that. – Onorio Catenacci Apr 27 '12 at 12:38
  • 1
    @BlueRaja-DannyPflughoeft Why did you put "Show me your code" in quotes? Has anyone actually written that here? – J D Apr 27 '12 at 13:15
  • 1
    @ildjarn "SO is here to give specific answers to specific questions". This looks like a specific question with specific answers to me. Is F# suitable? To some extent because it makes it easy to write logic solvers but it does not provide one so languages like Prolog would be more suitable. Are there other implementations? I don't know of any but I would also be curious to see and/or write some. – J D Apr 27 '12 at 13:16
  • 2
    Here is a solver written in OCaml using a logic programming library called Hansei http://okmij.org/ftp/kakuritu/zebra.ml – J D Apr 27 '12 at 13:20
  • @JonHarrop: I'm looking for a solution and show me your code are pretty similar. While I disagree that not a real question is the correct closing reason, the question seems too focused, since any "solution" to the question is not generally useful, beyond a coding sample, which there are plenty available. – Guvante Apr 27 '12 at 18:07
  • 1
    See also http://stackoverflow.com/questions/318888/solving-who-owns-the-zebra-programmatically – Joh Apr 28 '12 at 11:19
  • 3
    @Jon: if you can't come to an agreement in the comments here, take it up on [Meta Stack Overflow](http://meta.stackoverflow.com/). Do *not* drag this into other, unrelated questions. I've deleted the irrelevant bits of this conversation to encourage this... – Shog9 Apr 29 '12 at 05:29
  • 1
    @Shog9 You're just adding to the noise. Let's just focus on getting this valuable content off StackOverflow and onto another forum where it can help people. Adam suggests FPish... – J D Apr 29 '12 at 08:11

0 Answers0