<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<HTML>
  <HEAD>
    <link rel="icon"          href="/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="stylesheet"    href="../../../../../../default.css"  type="text/css">

    <TITLE>Rock, Paper, Scissors, Gun, Dynamite, Nuke, Lightning, Devil, Dragon, Alien, Water, Bowl, Air, Moon, Sponge, Wolf, Cockroach, Tree, Man, Woman, Monkey, Snake, Axe, Fire, Sun</TITLE>

    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
    <META HTTP-EQUIV="Description"
          NAME="description" CONTENT="Rock, Paper, Scissors, Gun, Dynamite, Nuke, Lightning, Devil, Dragon, Alien, Water, Bowl, Air, Moon, Sponge, Wolf, Cockroach, Tree, Man, Woman, Monkey, Snake, Axe, Fire, Sun, Lisard, Lizard, Spock">
    <META NAME="author"      CONTENT="Pascal J. Bourguignon">

    <META NAME="keywords"    CONTENT="Common Lisp, Lisp, game, Rock, Paper, Scissors, Gun, Dynamite, Nuke, Lightning, Devil, Dragon, Alien, Water, Bowl, Air, Moon, Sponge, Wolf, Cockroach, Tree, Man, Woman, Monkey, Snake, Axe, Fire, Sun, Lisard, Lizard, Spock">
  </HEAD>
  <BODY>
    <!--TOP-BEGIN-->
<!-- This section is automatically generated by html-update, -->
<!-- from data in 'node.el'.    Please, do not edit it here. -->
<DIV CLASS="TOP"></DIV>
<!--TOP-END-->
    <!--MENU-BEGIN-->
<!-- This section is automatically generated by html-update, -->
<!-- from data in 'node.el'.    Please, do not edit it here. -->
<DIV CLASS="MENU"><HR><P>|
 <A HREF="../../../../../../toc.html">Contents</a> |
 <A HREF="../../../../../../index.html">Home</a> |
 <A HREF="../playtomo-stonedge/index.html.in">Previous</a> |
 <A HREF="../index.html.in">Up</a> |
 <A HREF="../sudoku-solver/index.html.in">Next</a> |
</P><HR></DIV>
<!--MENU-END-->

    <H1>Rock, Paper, Scissors, Gun, Dynamite, Nuke, Lightning, Devil, Dragon, Alien, Water, Bowl, Air, Moon, Sponge, Wolf, Cockroach, Tree, Man, Woman, Monkey, Snake, Axe, Fire, Sun</H1>

    <p>This little program implements Rock, Paper, Scissor style games.</p>
    <p>Graphs are defined for:</p>
    <ul>
      <li>Rock, Paper, Scissor;</li>
      <li>Rock, Paper, Scissor, Lizard, Spock; and</li>
      <li>Rock, Paper, Scissors, Gun, Dynamite, Nuke, Lightning, Devil, Dragon, Alien, Water, Bowl, Air, Moon, Sponge, Wolf, Cockroach, Tree, Man, Woman, Monkey, Snake, Axe, Fire, Sun. (see the <a href="rpsls-25.jpg">table</a>)</li>
    </ul>

    <UL>
      <LI><A HREF="rpsls.lisp">rpsls.lisp</A></LI>
    </ul>

    <p>Example:</p>
    <pre>
CL-USER&gt; (RPSLS:main RPSLS::*rock-paper-scissors-gun-dynamite-nuke-lightning-devil-dragon-alien-water-bowl-air-moon-sponge-wolf-cockroach-tree-man-woman-monkey-snake-axe-fire-sun*)
Please choose an item amongst:
  quit air alien axe bowl cockroach devil dragon dynamite fire gun lightning man monkey moon nuke paper rock scissors snake sponge sun tree water wolf woman
&gt; air
You chose AIR.
Computer chose MAN.
Man breathes air.
Therefore you lose.

Please choose an item amongst:
  quit air alien axe bowl cockroach devil dragon dynamite fire gun lightning man monkey moon nuke paper rock scissors snake sponge sun tree water wolf woman
&gt; man
You chose MAN.
Computer chose MOON.
Man travels to moon.
Therefore you win.

Please choose an item amongst:
  quit air alien axe bowl cockroach devil dragon dynamite fire gun lightning man monkey moon nuke paper rock scissors snake sponge sun tree water wolf woman
&gt; moon
You chose MOON.
Computer chose WATER.
Moon has no water.
Therefore you win.

Please choose an item amongst:
  quit air alien axe bowl cockroach devil dragon dynamite fire gun lightning man monkey moon nuke paper rock scissors snake sponge sun tree water wolf woman
&gt; water
You chose WATER.
Computer chose WOLF.
Wolf drinks water.
Therefore you lose.

Please choose an item amongst:
  quit air alien axe bowl cockroach devil dragon dynamite fire gun lightning man monkey moon nuke paper rock scissors snake sponge sun tree water wolf woman
&gt; wolf
You chose WOLF.
Computer chose FIRE.
Fire burns wolf.
Therefore you lose.

Please choose an item amongst:
  quit air alien axe bowl cockroach devil dragon dynamite fire gun lightning man monkey moon nuke paper rock scissors snake sponge sun tree water wolf woman
&gt; quit
You      won 2 of 6 games.
Computer won 3 of 6 games.
2
3
1
6
CL-USER&gt;
    </pre>


    <!--MENU-BEGIN-->
<!-- This section is automatically generated by html-update, -->
<!-- from data in 'node.el'.    Please, do not edit it here. -->
<DIV CLASS="MENU"><HR><P>|
 <A HREF="../../../../../../toc.html">Contents</a> |
 <A HREF="../../../../../../index.html">Home</a> |
 <A HREF="../playtomo-stonedge/index.html.in">Previous</a> |
 <A HREF="../index.html.in">Up</a> |
 <A HREF="../sudoku-solver/index.html.in">Next</a> |
</P><HR></DIV>
<!--MENU-END-->
    <!--BOTTOM-BEGIN-->
<!-- This section is automatically generated by html-update, -->
<!-- from data in 'node.el'.    Please, do not edit it here. -->
<DIV CLASS="BOTTOM">
<hr><code><small>
 | <a href="http://www.informatimago.com//develop/lisp/com/informatimago/small-cl-pgms/rpsls/index.html.in">Mirror on informatimago.com</a>
 | <a href="http://informatimago.free.fr/i//develop/lisp/com/informatimago/small-cl-pgms/rpsls/index.html.in">Mirror on free.fr</a>
 | </small></code>

<BR><SMALL>
      <a href="http://validator.w3.org/check?uri=referer"><img
          src="http://www.w3.org/Icons/valid-html401"
          alt="Valid HTML 4.01!" height="31" width="88"></a>
   </SMALL>
</DIV>
<!--BOTTOM-END-->
  </BODY>
</HTML>
ViewGit