Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ICT100_Tutorials_T3_2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Vitale
ICT100_Tutorials_T3_2022
Commits
81c0bb96
Commit
81c0bb96
authored
2 years ago
by
Jonathan Vitale
Browse files
Options
Downloads
Patches
Plain Diff
Add game interface to index.html
parent
6d56dfcb
Branches
Branches containing commit
Tags
tutorial-7-material
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
index.html
+78
-5
78 additions, 5 deletions
index.html
with
78 additions
and
5 deletions
index.html
+
78
−
5
View file @
81c0bb96
<!DOCTYPE html>
<html>
<head>
<script
type=
"text/javascript"
src=
"game-logic.js"
></script>
<title>
Blackjack
</title>
</head>
<body>
This is blackjack
<body
style=
"background-color: green; color:white; font-family:Arial, Helvetica, sans-serif;"
>
<table
border=
"1"
width=
"50%"
align=
"center"
>
<tr>
<td
colspan=
"2"
>
<button
id=
"button-run"
>
Start a new game
</button>
</td>
</tr>
<tr>
<td>
Player's wallet
</td>
<td
id=
"player-wallet"
>
</td>
</tr>
<tr>
<td>
Current bet
</td>
<td
id=
"player-bet"
><input
id=
"player-bet-input"
type=
"text"
disabled
/><button
id=
"player-bet-button"
disabled
>
Confirm your bet
</button></td>
</tr>
<tr>
<td
colspan=
"2"
>
Player's cards:
</td>
</tr>
<tr>
<td
colspan=
"2"
>
<table
id=
"player-cards"
border=
"1"
width=
"700px"
height=
"110px"
>
<tr>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td
width=
"130px"
>
Player's score:
</td>
<td
id=
"player-score"
>
</td>
</tr>
<tr>
<td
id=
"console-log"
colspan=
"2"
height=
"50px"
align=
"center"
>
</td>
</tr>
<tr>
<td
colspan=
"2"
height=
"100px"
align=
"center"
>
<button
id=
"button-stay"
style=
"width: 100px;"
disabled
>
Stay
</button>
<button
id=
"button-hit"
style=
"width: 100px;"
disabled
>
Hit
</button>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
Dealer's cards:
</td>
</tr>
<tr>
<td
colspan=
"2"
>
<table
id=
"dealer-cards"
border=
"1"
width=
"700px"
height=
"110px"
>
<tr>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
<td
width=
"10%"
>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td
width=
"130px"
>
Dealer's score:
</td>
<td
id=
"dealer-score"
>
</td>
</tr>
</table>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment