-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"weapons": [ | ||
|
||
{ | ||
"name": "", | ||
"image": "", | ||
"alt": "", | ||
"attack": [ | ||
{ | ||
"past": "", | ||
"present": "", | ||
"pastpart": "", | ||
"prespart": "" | ||
} | ||
], | ||
"strength": "", | ||
"weakness": "", | ||
"credit": "" | ||
}, | ||
|
||
{ | ||
"name": "rock", | ||
"image": "images/rock.png", | ||
"alt": "A pretty sharp and deadly looking rock.", | ||
"attack": [ | ||
{ | ||
"past": "bludgeoned", | ||
"present": "bludgeon", | ||
"pastpart": "bludgeoned", | ||
"prespart": "bludgeoning" | ||
} | ||
], | ||
"strength": "heavy", | ||
"weakness": "brittle", | ||
"credit": "<a href=\"https://commons.wikimedia.org/wiki/File:Pebble_MET_sf17-193-196s3.jpg\">Metropolitan Museum of Art</a>, CC0, via Wikimedia Commons" | ||
}, | ||
|
||
{ | ||
"name": "paper", | ||
"image": "images/paper.png", | ||
"alt": "A crumpled ball of paper.", | ||
"attack": [ | ||
{ | ||
"past":"paper cut", | ||
"present":"paper cut", | ||
"pastpart":"paper cut", | ||
"prespart":"paper cutting" | ||
} | ||
], | ||
"strength": "sneaky", | ||
"weakness": "floppy", | ||
"credit": "found on PublicDomainPictures.net but fairly certain the original photo was taken by Porjai after some research: https://www.shutterstock.com/g/porjai+kittawornrat" | ||
}, | ||
|
||
{ | ||
"name": "scissors", | ||
"image": "images/scissors.png", | ||
"alt": "A pair of orange-handled right-handed Fiskars scissors", | ||
"attack": [ | ||
{ | ||
"past":"stabbed", | ||
"present":"stab", | ||
"pastpart":"stabbed", | ||
"prespart":"stabbing" | ||
} | ||
], | ||
"strength": "pointy", | ||
"weakness": "exclusionary", | ||
"credit": "<a href=\"https://commons.wikimedia.org/wiki/File:Large-scissors.jpg\">Evan-amos</a>, Public domain, via Wikimedia Commons" | ||
}, | ||
|
||
{ | ||
"name": "cookie", | ||
"image": "images/cookie.png", | ||
"alt": "A single Nantucket Pepperidge Farm chocolate chip cookie", | ||
"attack": | ||
[ | ||
{ | ||
"past": "tempted", | ||
"present": "tempt", | ||
"pastpart": "tempted", | ||
"prespart": "tempting" | ||
} | ||
], | ||
"strength": "delicious", | ||
"weakness": "crumbly", | ||
"credit": "<a href=\"https://commons.wikimedia.org/wiki/File:Pep-Farm-Cookie-Alt.jpg\">Evan-Amos</a>, CC0, via Wikimedia Commons" | ||
} | ||
], | ||
|
||
"outcomes": [ | ||
{ | ||
"win":"Your clever choice of {userWeapon} allows you to triumph over your opponent. A quick {userAttackPresent} exploits the {computerWeakness} nature of your opponent's {computerWeapon}. The {userStrength} always prevail.", | ||
"lose":"You shouldn't have chosen a {userWeapon}. Its {userWeakness} was quickly exploited by your opponent {computerAttackPresPart} in a a quick and {computerStrength} victory.", | ||
"tie": "... {userWeapon} ... more like a {userStrength} and {userWeakness} Spiderman meme." | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="styles/genderstyle.css"> | ||
<title>k</title> | ||
</head> | ||
<body> | ||
<div id="k-container"> | ||
<h1>k = <span class="display" id="k-display"></span></h1> | ||
<button onclick="kPlusPlus()" class="modifier" id="k-modifier">k++</button> | ||
</div> | ||
<div id="options"> | ||
<h2>Choose Wisely</h2> | ||
<div id="option-buttons"> | ||
</div> | ||
</div> | ||
<!-- | ||
<button class="option" name="rock" value=0>rock</button> | ||
<button class="option" name="paper" value=1>paper</button> | ||
<button class="option" name="scissors" value=2>scissors</button> | ||
<h2>Computer Choice: <span class="display" id="computer-choice"></span></h2> | ||
<h2>Your Choice: <span class="display" id="user-choice"></span></h2> | ||
<h2>Outcome: <span class="display" id="outcome"></span></h2> --> | ||
|
||
<script src="app.js" charset="utf-8"></script> | ||
</body> | ||
</html> |