<div class="document" id="rpsls"
     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"
     description="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"
     author="Pascal J. Bourguignon"
     keywords="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"
     language="en">

  <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 class="dribble">
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>
</div>
ViewGit