Commit 061d7535 by Dan Grace

adding hw1

parent 5aadf570
Showing with 85 additions and 44 deletions
File added
<html>
<head>
<title>My Resume</title>
<style>
<style>
#wrap {
width: 900px;
margin: 0 auto;}
body {
width:;
margin:20px;
font-family: arial;
}
img {width: 200px;float: right;}
h2:after {content:' '; display:block; border:2px solid gray;}
</style>
</head>
<div>
</head>
<body>
<img src="photo.png">
<div id="wrap">
<img src="https://mit.cs.uchicago.edu/dgrace0/MPCS_52553_Winter_2020/raw/master/hw1/photo.png">
<h1>Mark Watney</h1>
<h3>Botanist and Mechanical Engineer</h3>
......@@ -54,5 +67,6 @@
<li>Masters of Science in Botany, Northwestern University, 2029</li>
</ul>
</div>
</body>
</html>
Play Rock
Play Paper
Play Scissors
Welcome to Rock-Paper-Scissors!
From Wikipedia:
Rock-paper-scissors (also known as paper, scissors, stone or other variants) is a hand game usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand.
These shapes are:
- "rock" (a closed fist)
- "paper" (a flat hand)
- "scissors" (a fist with the index and middle fingers extended, forming a V)
A player who decides to play rock will beat another player who has chosen scissors ("rock crushes scissors" or sometimes "blunts scissors"), but will lose to one who has played paper ("paper covers rock"); a play of paper will lose to a play of scissors ("scissors cut[s] paper"). If both players choose the same shape, the game is tied and is usually immediately replayed to break the tie.
_and they play..._
Rock Paper Scissors
_If we play..._
Rock We tie We lose We win
Paper We win We tie We lose
Scissors We lose We win We tie
Originating from China and Japan, other names for the game in the English-speaking world include roshambo and other orderings of the three items, with "rock" sometimes being called "stone".
A chart showing how the three game elements interact:
[display chart.png here]
Kitsune-ken was a popular Japanese rock–paper–scissors variant. From left to right: The hunter (ryōshi), village head (shōya) and fox (kitsune):
[display figure-1.jpg here]
Mushi-ken, the earliest Japanese sansukumi-ken game (1809). From left to right: slug (namekuji), frog (kawazu) and snake (hebi).
[display figure-2.jpg here]
<!DOCTYPE html>
<html>
<head>
<title>rps</title>
<style>
table, th, td {
padding: 1px;
border: 1px solid black;
}
</style>
<a href="#">Play Rock</a><br>
<a href="#">Play Paper</a><br>
<a href="#">Play Scissors</a><br>
<h1>Welcome to Rock-Paper-Scissors!</h1>
<a href="https://en.wikipedia.org/wiki/Rock_paper_scissors">From Wikipedia:</a>
<p>Rock-paper-scissors (also known as paper, scissors,
stone or other variants)
is a hand game usually played between two people,
in which each player simultaneously
forms one of three shapes with an outstretched hand.</p>
<p>These shapes are:</p>
<ul>
<li>"rock" (a closed fist)</li>
<li>"paper" (a flat hand)</li>
<li>"scissors" (a fist with the index and middle fingers extended, forming a V)</li>
</ul>
<p>A player who decides to play rock will beat another player who has chosen scissors
("rock crushes scissors" or sometimes "blunts scissors"),
but will lose to one who has played paper ("paper covers rock");
a play of paper will lose to a play of scissors ("scissors cut[s] paper").
If both players choose the same shape,
the game is tied and is usually immediately replayed to break the tie.</p>
<table>
<tr>
<td colspan="2"rowspan="2"</td><td colspan="3">and they play...</td>
</tr>
<tr>
<td>Rock</td><td>Paper</td><td>Scissors</td>
</tr>
<tr>
<td rowspan="3">If we play...</td><td>Rock</td><td>We tie</td><td>We lose</td><td>We win</td>
</tr>
<tr>
</td><td>Paper</td><td>We win</td><td>We tie</td><td>We lose</td>
</tr>
<tr>
<td>Scissors</td><td>We lose</td><td>We win</td><td>We tie</td>
</tr>
</table>
<p>Originating from China and Japan,
other names for the game in the English-speaking world
include roshambo and other orderings of the three items,
with "rock" sometimes being called "stone".</p>
<img src="https://mit.cs.uchicago.edu/dgrace0/MPCS_52553_Winter_2020/raw/master/hw1/rps-chart.png">
<p>A chart showing how the three game elements interact</p>
<img src="https://mit.cs.uchicago.edu/dgrace0/MPCS_52553_Winter_2020/raw/master/hw1/rps-figure-1.jpg">
<p>Kitsune-ken was a popular Japanese rock–paper–scissors variant. From left to right: The hunter (ry&omacr;shi), village head (sh&omacr;ya) and fox (kitsune).</p>
<img src="https://mit.cs.uchicago.edu/dgrace0/MPCS_52553_Winter_2020/raw/master/hw1/rps-figure-2.jpg">
<p>Mushi-ken, the earliest Japanese sansukumi-ken game (1809). From left to right: slug (namekuji), frog (kawazu) and snake (hebi).</p>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment