Skip to content

mvp, Blackjack and Horseracing and dumb stuff oh my #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
bb3aa71
messin around
patglavin Mar 23, 2018
9f9a48f
man idunno
patglavin Mar 23, 2018
de59993
trying eslint
patglavin Mar 23, 2018
4af9a9e
???
patglavin Mar 23, 2018
c696a41
testing
patglavin Mar 23, 2018
5459e38
more testing
patglavin Mar 23, 2018
6674319
messing with innertext
patglavin Mar 23, 2018
2470765
messing with innertext but even more
patglavin Mar 23, 2018
33d3bc7
messing with alerts and structure
patglavin Mar 23, 2018
6f9dc39
accepting user input
patglavin Mar 23, 2018
f0d6d93
whoops didnt add
patglavin Mar 23, 2018
d711188
this is the worst ide
patglavin Mar 23, 2018
3650b4e
fuck this
patglavin Mar 23, 2018
7ca053b
clean structure
patglavin Mar 23, 2018
e2ac4f4
changing structure
patglavin Mar 24, 2018
ecffb81
capturing and resetting text field
patglavin Mar 24, 2018
c261cc1
prep for awfulTree
patglavin Mar 24, 2018
224a6e4
adjust css, add suit and value enums
patglavin Mar 24, 2018
e47bdbc
add deck generation
patglavin Mar 25, 2018
e24e95c
add shuffler
patglavin Mar 25, 2018
e27cdb0
whoops i added a server
patglavin Mar 25, 2018
13d8c72
value checking functional
patglavin Mar 25, 2018
9e66dc9
build initial turn order
patglavin Mar 25, 2018
9d51ca8
move and rename files to app over greeter
patglavin Mar 25, 2018
9d4edf3
add drawstep, turnorder workflow set
patglavin Mar 25, 2018
ef5c668
add betting and handvalue calc
patglavin Mar 25, 2018
5dd977f
prep for branch testFile
patglavin Mar 25, 2018
d98a8cc
creating new files
patglavin Mar 25, 2018
ed9ce2b
move deck, card and blackjack to separate files
patglavin Mar 25, 2018
cec158b
add bust check
patglavin Mar 25, 2018
6a60b5d
starting player and dealer classes
patglavin Mar 25, 2018
7082691
monkeying with aceadjust
patglavin Mar 25, 2018
7ff4f5f
move aceadjust to scratchpad
patglavin Mar 25, 2018
d1850af
separate functionality to player class
patglavin Mar 25, 2018
1d11d28
add win check step
patglavin Mar 25, 2018
a168611
win check on blackjack firing, faulty win check
patglavin Mar 25, 2018
9d71cd9
add complete, looping turnflow
patglavin Mar 25, 2018
5a1d58f
final bustcheck in place, turn looping and fully running
patglavin Mar 25, 2018
15052a3
prep for coinflip
patglavin Mar 25, 2018
0c31ba4
add coinflip
patglavin Mar 25, 2018
0f5b980
add coinflip class and button
patglavin Mar 25, 2018
e4f6a82
separating into cardgame abstract class
patglavin Mar 25, 2018
f4c9b96
separate menu from app, separate blackjack player from profile
patglavin Mar 25, 2018
86c40a4
add profile class
patglavin Mar 25, 2018
a9d93e5
detangled functionality, must loop turn now
patglavin Mar 25, 2018
2d99aa5
correctly functioning, detangled
patglavin Mar 26, 2018
ac2a224
fix mistake, calling newHand twich
patglavin Mar 26, 2018
e46b84b
changing headers i guess idunno
patglavin Mar 26, 2018
828297c
messing with fonts?
patglavin Mar 26, 2018
0d66e5f
prep for return to main menu branch
patglavin Mar 26, 2018
92082a8
stash for new game branch
patglavin Mar 26, 2018
f64e9ef
lol you can drink now woot woot
patglavin Mar 26, 2018
cb788d4
add styling for shot button and blackjack
patglavin Mar 26, 2018
ee261fe
add horse class, prep for horserace branch
patglavin Mar 26, 2018
727abd5
add horserace class, add initializer function
patglavin Mar 26, 2018
f36f207
set field for horse race, create 5 horses, inverse speed to payout
patglavin Mar 26, 2018
907aa2c
add full horse selection, with recursive default case
patglavin Mar 26, 2018
0c274db
almost complete, need to parse bet corrrectly
patglavin Mar 26, 2018
8aa4ab8
yo it works
patglavin Mar 26, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"option": "watch",
"problemMatcher": [
"$tsc-watch"
]
}
]
}
8 changes: 6 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,18 @@ h1 {font-weight: bold; margin-left: 10px;}
padding:10px;
min-height:300px;
background:#eee;
margin-bottom:10px;
margin-bottom:10px;
}
#menu {
float: left;
width: 100px;
margin: 0 0 0 10px;
}

.btn {
margin: 15px 0 0 0;
}

#menu ul {
list-style-type: none;
}
Expand All @@ -138,4 +142,4 @@ h1 {font-weight: bold; margin-left: 10px;}

#menu button {
width: 120px;
}
}
32 changes: 24 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,44 @@
<meta charset="UTF-8">

<!-- Bootstrap minified CSS -->
<link href="https://fonts.googleapis.com/css?family=Chicle|Press+Start+2P" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

<link href="./css/style.css" type="text/css" rel="stylesheet">
<title>TypeScript Casino | Zipcode Wilmington</title>
<title>Patrick's Amazing TypeScript Casino | Zipcode Wilmington</title>
</head>
<body>
<body id="body">
<header class="main-header group">
<div class="title"></div>
<div class="lesson-link"><img src="./images/logos/js_logo.png" alt="Javascript"/></div>
<div class="zip-link"><img src="./images/logos/zip_logo.jpg" alt="Zipcode Wilmington"/></div>
</header>

<h1>TypeScript Casino</h1>
<h1 id="game_title">Super Great TypeScript Casino</h1>

<section id="main">
<div id="display"></div>
<div class="" id="display">
Welcome to the Casino!
</div>
<div id="input">
<input type="text" name="user_input" id="user_input">
<input type="submit" value="submit">
<input class="form-control" type="text" name="user_input" id="user_input">
<input class="btn btn-primary" type="submit" value="submit" id="submit">
<input class="btn btn-danger" type="submit" value="coinflip" id="coinflip">
<input class="btn btn-warning" type="submit" value="take a shot" id="drink">
</div>
</section>

<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/Horse.js"></script>
<script type="text/javascript" src="js/HorseRace.js"></script>
<script type="text/javascript" src="js/Profile.js"></script>
<script type="text/javascript" src="js/CardGame.js"></script>
<script type="text/javascript" src="js/CoinFlip.js"></script>
<script type="text/javascript" src="js/BlackJackPlayer.js"></script>
<script type="text/javascript" src="js/dealer.js"></script>
<script type="text/javascript" src="js/card.js"></script>
<script type="text/javascript" src="js/deck.js"></script>
<script type="text/javascript" src="js/BlackJack.js"></script>
<script type="text/javascript" src="js/MainMenu.js"></script>
<script type="text/javascript" src="js/app.js"></script>

</body>
</html>
162 changes: 162 additions & 0 deletions js/BlackJack.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/BlackJack.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions js/BlackJackPlayer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/BlackJackPlayer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions js/CardGame.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/CardGame.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions js/CoinFlip.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/CoinFlip.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/Game.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/Game.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions js/Horse.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading