Commit 5aadf570 by Jeff Cohen

Assign hw1

parents
# Homework #1
10 points
**DUE: Thursday, January 16 by 5:30pm**
For easiest viewing of these instructions, you may want to view online on with a Markdown previewer.
### Instructions
This assignment will help you get practice with HTML and
some CSS as well. A little extra HTML/CSS research will be required
as indicated in the directions.
1. **5 points** HTML Challenge: Modify `rps.html` so that the browser renders
the page as closely as possible to [rps-target.png](rps-target.png), which is
a shortened version of the Wikipedia article on the game ["Rock, Paper, Scissors"](https://en.wikipedia.org/wiki/Rock-paper-scissors).
HINT: No CSS coding is required.
2. **5 points** CSS Challenge: Modify `resume.html`
so that it looks like [resume-target.png](resume-target.png).
Refer to [resume-specifications.png](resume-specifications.png) for exact
requirements. Note that the entire content
of the page should be a width of 960px, and that
the page should be centered on your screen.
HINT: You will need to research how to specify fonts in CSS,
as well as how the `margin` property can be used to center
the entire page on the screen.
ANOTHER HINT: You only need to add CSS code inside the `<style>...</style>` element.
No other HTML changes should be necessary.
<html>
<head>
<title>My Resume</title>
<style>
</style>
</head>
<body>
<img src="photo.png">
<h1>Mark Watney</h1>
<h3>Botanist and Mechanical Engineer</h3>
<p>Contact me:</p>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
</ul>
<h2>Summary</h2>
<p>
Mark is a <span class="important">specialist for NASA</span> and currently assigned to the Ares 3 mission to Mars.
He has a track record of radical ingenuity and a never-say-die attitude.
He is a <span>good team player</span> (though he tends to insult them sometimes).
Mark can improvise creative solutions with nothing more than duct tape and water.
However, he tends to get left behind by his colleagues.
</p>
<h2>Experience</h2>
<p>NASA Engineer, 2031 - Present</p>
<ul>
<li class="important">Mars mission specialist.</li>
<li>Botanist researcher and extraterrestrial farmer.</li>
</ul>
<p>Botanist, 2028-2031</p>
<ul>
<li>Soil analyst.</li>
<li>Potato photosynthesis specialist.</li>
</ul>
<h2>Skills</h2>
<ul>
<li>Astronaut</li>
<li>Growing plants</li>
<li>Fixing computers</li>
<li>Driving Mars rovers</li>
</ul>
<h2 class="important">Education</h2>
<ul>
<li>PhD in Mechanical Engineering, Northwestern University, 2028</li>
<li>Masters of Science in Botany, Northwestern University, 2029</li>
</ul>
</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]
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