Reversi

Tatiana tatianam@escelsa.com.br
Thu, 10 Oct 2002 09:28:55 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_0030_01C2703F.74D06460
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0031_01C2703F.74D06460"


------=_NextPart_001_0031_01C2703F.74D06460
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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
__________________________________________________________________


------=_NextPart_001_0031_01C2703F.74D06460
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello!!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you for the answer.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I would like to know about games=20
two-player.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I=B4m having problems with interface of =

user.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Tatiana</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>On 2002-10-08T17:13:35-0300, Tatiana =
wrote:<BR>&gt;=20
Hello!<BR>&gt; <BR>&gt; Does anybody have the game reversi in =
Haskell???<BR>&gt;=20
I need this code to understand a problem.<BR>&gt; If you have another =
game in=20
Haskell, please help me. I need see any<BR>&gt; game in =
Haskell.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How about games in general (more =
specifically,=20
two-player zero-sum<BR>games)?&nbsp; Check out section 5 =
of:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>@Article{&nbsp;hughes-why,<BR>&nbsp; =
author&nbsp;=3D=20
"John Hughes",<BR>&nbsp; title&nbsp;&nbsp;=3D "Why Functional =
Programming=20
Matters",<BR>&nbsp; journal&nbsp;=3D "The Computer Journal",<BR>&nbsp;=20
year&nbsp;&nbsp;=3D 1989,<BR>&nbsp; volume&nbsp;=3D 32,<BR>&nbsp; =
number&nbsp;=3D=20
2,<BR>&nbsp; pages&nbsp;&nbsp;=3D "98--107",<BR>&nbsp; =
url&nbsp;&nbsp;=3D "<A=20
href=3D"http://www.cs.chalmers.se/~rjmh/Papers/whyfp.html">http://www.cs.=
chalmers.se/~rjmh/Papers/whyfp.html</A>",<BR>&nbsp;=20
abstract&nbsp;=3D "As software becomes more and more complex, it is =
more<BR>&nbsp;=20
and more important to structure it well. Well-structured software =
is<BR>&nbsp;=20
easy to write, easy to debug, and provides a collection of =
modules<BR>&nbsp;=20
that can be re-used to reduce future programming costs. =
Conventional<BR>&nbsp;=20
languages place conceptual limits on the way problems can be<BR>&nbsp;=20
modularised. Functional languages push those limits back. In =
this<BR>&nbsp;=20
paper we show that two features of functional languages in =
particular,<BR>&nbsp;=20
higher-order functions and lazy evaluation, can contribute greatly =
to<BR>&nbsp;=20
modularity. As examples, we manipulate lists and trees, =
program<BR>&nbsp;=20
several numerical algorithms, and implement the alpha-beta =
heuristic<BR>&nbsp;=20
(an algorithm from Artificial Intelligence used in =
game-playing<BR>&nbsp;=20
programs). Since modularity is the key to successful =
programming,<BR>&nbsp;=20
functional languages are vitally important to the real =
world."<BR>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-- <BR>Edit this signature at <A=20
href=3D"http://www.digitas.harvard.edu/cgi-bin/ken/sig">http://www.digita=
s.harvard.edu/cgi-bin/ken/sig</A><BR>When=20
a strange flattened eel gives a bite you can feel, that's a=20
moray.<BR></FONT></DIV>
<DIV><FONT face=3D'"Verdana", Geneva, MS sans-serif' color=3D#448593=20
size=3D-2><B>____________________________________________________________=
______</B><BR><FONT=20
face=3D'"Verdana", Geneva, MS sans-serif' color=3D#448593 =
size=3D-1><B>Tatiana=20
Coco</B></FONT><BR><B>ICQ#:&nbsp;<FONT =
color=3D#4051c8>111963224</FONT></B><BR>
<TABLE border=3D0>
  <TBODY>
  <TR>
    <TD vAlign=3Dtop><FONT face=3D"Verdana,Geneva, MS sans-serif" =
color=3D#448593=20
      size=3D-2><B>Current ICQ status:</B>&nbsp;&nbsp;</FONT></TD>
    <TD vAlign=3Dbottom><IMG=20
      =
src=3D"http://web.icq.com/whitepages/online?icq=3D111963224&amp;img=3D21"=
>=20
  </TD></TR></TBODY></TABLE><FONT face=3DWingdings =
size=3D3><B>+</B></FONT> &nbsp;<A=20
href=3D"http://wwp.icq.com/111963224"><B>More ways to contact me=20
</B></A><BR><B>__________________________________________________________=
________</B><BR></FONT></DIV></BODY></HTML>

------=_NextPart_001_0031_01C2703F.74D06460--

------=_NextPart_000_0030_01C2703F.74D06460
Content-Type: application/octet-stream;
	name="online?icq=111963224&img=21"
Content-Transfer-Encoding: base64
Content-Location: http://web.icq.com/whitepages/online?icq=111963224&img=21

R0lGODlhDwAQAJEAAH9/fwAAAP///wAAACH5BAAAAAAALAAAAAAPABAAAAI5lC8RyLew1DIqCQAr
tPJmH13ahk3Wp03Ss3bnR4mqscXY1qpPtuctyJLFEqxdrVLsMSJM4rLimBQAADsA

------=_NextPart_000_0030_01C2703F.74D06460--