Skip to content

Commit

Permalink
early commits
Browse files Browse the repository at this point in the history
  • Loading branch information
deilann committed Sep 29, 2023
1 parent 58020f2 commit f68c66b
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 0 deletions.
98 changes: 98 additions & 0 deletions k-graphing/data.json
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."
}
]
}
Binary file added k-graphing/images/cookie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added k-graphing/images/paper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added k-graphing/images/rock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added k-graphing/images/scissors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions k-graphing/k.html
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>

0 comments on commit f68c66b

Please sign in to comment.