Reversi
Ken Shan
ken@digitas.harvard.edu
Wed, 9 Oct 2002 15:34:50 -0400
--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2002-10-08T17:13:35-0300, Tatiana wrote:
> Hello!
>=20
> Does anybody have the game reversi in Haskell???
> I need this code to understand a problem.
> If you have another game in Haskell, please help me. I need see any
> game in Haskell.
How about games in general (more specifically, two-player zero-sum
games)? Check out section 5 of:
@Article{ hughes-why,
author =3D "John Hughes",
title =3D "Why Functional Programming Matters",
journal =3D "The Computer Journal",
year =3D 1989,
volume =3D 32,
number =3D 2,
pages =3D "98--107",
url =3D "http://www.cs.chalmers.se/~rjmh/Papers/whyfp.html",
abstract =3D "As software becomes more and more complex, it is more
and more important to structure it well. Well-structured software is
easy to write, easy to debug, and provides a collection of modules
that can be re-used to reduce future programming costs. Conventional
languages place conceptual limits on the way problems can be
modularised. Functional languages push those limits back. In this
paper we show that two features of functional languages in particular,
higher-order functions and lazy evaluation, can contribute greatly to
modularity. As examples, we manipulate lists and trees, program
several numerical algorithms, and implement the alpha-beta heuristic
(an algorithm from Artificial Intelligence used in game-playing
programs). Since modularity is the key to successful programming,
functional languages are vitally important to the real world."
}
--=20
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
When a strange flattened eel gives a bite you can feel, that's a moray.
--W/nzBZO5zC0uMSeA
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE9pITazjAc4f+uuBURAlJJAKCx92131UrPvsIC2jqE/vwE1eTP0QCfXEYR
gxcu7OejKQdkuT1jx+6EWhU=
=DRf8
-----END PGP SIGNATURE-----
--W/nzBZO5zC0uMSeA--