Sokoban in Haskell? [closed] - haskell

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I don't know if this is a proper question, but if I want to write a Sokoban game in Haskell (or other functional programming languages), what's the differences with writing it in C? [Edit: does Haskell have any advantages over C in Sokoban ?]
I would like to ask this question because of two reasons. First, my only interest in programming is to write Sokoban programs (I have already written several sokoban programs). Second, I've read some introduction/tutorial articles about Haskell, but have no idea how these new methods can be applied to the Sokoban logic.

Related

Algorithm to find where exactly two strings match/differ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am working on finding the similarity/differences in the source code of different java programs.
I've used an implementation of the Levenshtein algorithm to find how similar two programs are.
I want to know if there is any algorithm that can help in finding the exact positions where two strings differ.
You will find more than you ever wanted to know by looking at the inner workings of diff - see for example this link or simply the wiki article

Urm, List<T>() in C++/CX? Any kind of List, Collection - even an ObvervableCollection? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am trying to bind (in XAML) to a List in C++/CX and I can't seem to have any Lists. Where'd they all go? Any kind of list will do... Even a Dictionary, or Stack, or ... something! Or has C++ changed that much since I last used it?
There are C++/CX implementations of the Windows collection interfaces in the Platform::Collections namespace, defined in <collection.h>.
See also the article on Collections in C++/CX on MSDN.

Simple exercises to learn Netwire? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Haskell wiki > Netwire has some good introductory material to Netwire, but now (as a hobbyist Haskeller) I'm interested in something more. What kinds of simple exercises would be beneficial in order to sharpen my arrow/netwire skills?
I'm sorry that I didn't get around to updating the wiki page yet. I hope to extend it in the coming days. For now the #haskell channel on Freenode is probably your best bet.

Learning in C - possible to write/read to a text file? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Hey I'm just learning C in school and I have this idea for a little mini programming project I want to do. I know you guys know your shit on here so I'm wondering if it's possible to read and write to a text file in C?
And if so, can someone direct me to a link or give me a little sample code of how to do that?
C file I/O
there you go

a="hello", b="bye", c=a*b then print c? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I came across one question like this
a="hello", b="bye", c=a*b
then what will the anwser of print c?
That depends on the implementation of the * operator on string data types. And that usually depends on the programming language you use. In most statically typed languages I know, this operator is not defined on strings.
In JavaScript, the value of c will be NaN.
It's a trick question, I think. You can't multiply a string with another string. I don't think any language allows this.

Resources