Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Investment Monopoly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Tomi Mäkelä
Investment Monopoly
Commits
767e340f
Commit
767e340f
authored
4 years ago
by
Totmak
Browse files
Options
Downloads
Patches
Plain Diff
Docker test
parent
f4057a85
Branches
unstable
No related tags found
No related merge requests found
Pipeline
#41247
passed
4 years ago
Stage: build
Stage: test
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
index.html
+58
-5
58 additions, 5 deletions
index.html
index.js
+0
-1
0 additions, 1 deletion
index.js
monopoly/code/index.html
+0
-0
0 additions, 0 deletions
monopoly/code/index.html
monopoly/code/test.js
+1
-1
1 addition, 1 deletion
monopoly/code/test.js
server.js
+0
-2
0 additions, 2 deletions
server.js
with
59 additions
and
9 deletions
index.html
+
58
−
5
View file @
767e340f
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<link
rel=
"stylesheet"
href=
"monopoly/style.css"
>
</head>
<body>
<main>
<div
id=
"container"
>
<div
id=
"board"
></div>
<span
id=
"info"
>
<span
id=
"infoCoa"
></span>
<span
id=
"infoNameText"
><p
id=
"infoName"
></p></span>
<span
id=
"infoOtherS"
><p><b>
Value:
</b><p
id=
"infoValue"
></p></p></span>
<span
id=
"infoOther"
>
<p><b>
Dignity:
</b><p
id=
"infoDignity"
></p></p>
</span>
<span
id=
"infoShareS"
>
<p><b>
Shares:
</b><p
id=
"infoShares"
></p></p>
</span>
<span
id=
"infoOwnerText"
><p><b>
Owner:
</b><p
id=
"infoOwner"
></p></p></span>
<button
id=
"buyShare"
onclick=
"Player.buyShare()"
>
BUY SHARE
</button>
</span>
<span
id=
"console"
>
</span>
</main><selection>
<table
id=
"entrepreneurs"
>
<caption><h3>
ENTREPRENEURS
</h3></caption>
<tr><th
width=
'50%'
>
Name
</th><th>
Company
</th><th
title=
"Prudence"
>
PRU
</th><th
title=
"Ambition"
>
AMB
</th><th
title=
"Pride"
>
PRI
</th><th>
Reputation
</th><th>
Tenure
</th></tr>
</table>
</selection>
<selection>
<table
id=
"companies"
>
<caption><h3>
COMPANIES
</h3></caption>
<tr><th
width=
"31.95%"
>
Name
</th><th>
Icon
</th><th>
Properties
</th><th>
Treasury
</th><th>
Total value
</th></tr>
</table>
</selection>
<aside>
<table
id=
"shares"
>
<caption><h3>
SHARES
</h3></caption>
<tr><th>
Location
</th><th>
Company
</th><th
title=
"Current Value"
>
C. value
</th><th
title=
"Original value"
>
O. value
</th><th>
Options
</th></tr>
</table>
</aside>
<aside>
<fieldset>
<legend><h3>
PLAYER
</h3></legend>
<table
id=
"player"
>
<tr><th>
Treasury:
</th><td
id=
"playerTreasury"
>
a
</td></tr>
<tr><th>
Shares:
</th><td
id=
"playerShares"
></td></tr>
<tr><th>
Shares value:
</th><td
id=
"playerSharesValue"
></td></tr>
<tr><th>
Turn:
</th><td
id=
"playerTurn"
></td></tr>
<tr><td
colspan=
"2"
><button
id=
"turnButton"
onclick=
"turn()"
>
TURN
</button></td></tr>
<tr><td
colspan=
"2"
>
<button
id=
"cashOutButton"
onclick=
"Player.cashOut()"
>
CASH OUT
</button></td></tr>
<tr><td
colspan=
"2"
>
<button
id=
"reloadButton"
onclick=
"reloadGame()"
>
RELOAD
</button></td></tr>
</table>
</fieldset
</aside
>
</body>
</html>
<script
type=
"module"
src=
"index.js"
></script>
<html>
This diff is collapsed.
Click to expand it.
index.js
+
0
−
1
View file @
767e340f
...
...
@@ -43,4 +43,3 @@ document.getElementById("cashOutButton").onclick = function(){Player.cashOut();}
document
.
getElementById
(
"
reloadButton
"
).
onclick
=
function
(){
Basic
.
reloadGame
();}
//UnitTest.runUnitTest();
This diff is collapsed.
Click to expand it.
monopoly/code/index.html
0 → 100644
+
0
−
0
View file @
767e340f
This diff is collapsed.
Click to expand it.
monopoly/code/test.js
+
1
−
1
View file @
767e340f
var
test
=
fals
e
;
var
test
=
tru
e
;
module
.
exports
=
test
;
This diff is collapsed.
Click to expand it.
server.js
+
0
−
2
View file @
767e340f
...
...
@@ -3,5 +3,3 @@ var app = express();
app
.
use
(
express
.
static
(
__dirname
));
//__dir and not _dir
var
port
=
3000
;
// you can use any port
app
.
listen
(
port
);
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