Reversi

Jan de Wit Jan.de.Wit@triopsys.nl
Fri, 11 Oct 2002 10:07:56 +0200


Hi,

> Hello!!!
>=20
> Thank you for the answer.
> I would like to know about games two-player.
> I=B4m having problems with interface of user.
I've written a Go-program (also black and white stones on a board :-) =
with
an interface in TclHaskell. If you could be a bit more specific about =
your
user-interface problems, I might be able to help out...

Cheers,
Jan de Wit

>=20
> Thank you=20
> Tatiana

-----Original Message-----
From: Tatiana [mailto:tatianam@escelsa.com.br]
Sent: Thursday, October 10, 2002 2:29 PM
To: haskell@haskell.org
Subject: Reversi


Hello!!!

Thank you for the answer.
I would like to know about games two-player.
I=B4m having problems with interface of user.

Thank you=20
Tatiana

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.

__________________________________________________________________
Tatiana Coco
ICQ#: 111963224
Current ICQ status:  =20
+  More ways to contact me=20
__________________________________________________________________
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft =
Exchange.
For more information, connect to http://www.F-Secure.com/

###########################################