added css, font, levies, improvements
This commit is contained in:
9
LICENSE.txt
Normal file
9
LICENSE.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright © 2023 University of Colorado Boulder
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,13 +1,15 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Monopoly Ledger</title>
|
<title>Monopoly Ledger</title>
|
||||||
</head>
|
<link rel="stylesheet" href="styles.css">
|
||||||
<body>
|
</head>
|
||||||
|
<body>
|
||||||
<h1>Monopoly Ledger</h1>
|
<h1>Monopoly Ledger</h1>
|
||||||
|
|
||||||
<div id="setup">
|
<div id="setup">
|
||||||
<h2>Setup</h2>
|
<h2>Setup</h2>
|
||||||
|
<div class="wrap">
|
||||||
<label for="numPlayers">Number of Players:</label>
|
<label for="numPlayers">Number of Players:</label>
|
||||||
<input type="number" id="numPlayers">
|
<input type="number" id="numPlayers">
|
||||||
<br>
|
<br>
|
||||||
@@ -16,17 +18,19 @@
|
|||||||
<br>
|
<br>
|
||||||
<button onclick="initialize()">Set</button>
|
<button onclick="initialize()">Set</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="balances">
|
<div id="balances">
|
||||||
<h2>Balances</h2>
|
<h2>Balances</h2>
|
||||||
<div id="output"></div>
|
<div id="output"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="transactions">
|
<div id="transactions">
|
||||||
|
|
||||||
<h2>Transactions</h2>
|
<h2>Transactions</h2>
|
||||||
|
|
||||||
<form id="transactions" onsubmit="event.preventDefault();">
|
<form id="transactionsForm" onsubmit="event.preventDefault();">
|
||||||
<label for="fromAcc">From:</label>
|
<label for="fromAcc">From:</label>
|
||||||
<select id="fromAcc">
|
<select id="fromAcc">
|
||||||
<option value="pot">Pot</option>
|
<option value="pot">Pot</option>
|
||||||
@@ -50,7 +54,33 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Add property list -->
|
<div id="levies">
|
||||||
|
<h2>Levies</h2>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<label for="levyAmount"></label>
|
||||||
|
<input type="number" id="levyAmount">
|
||||||
|
|
||||||
|
<label for="levyType"></label>
|
||||||
|
<select id="levyType">
|
||||||
|
<option value="money">Percentage of Money</option>
|
||||||
|
<option value="property">Percentage of Property Values</option>
|
||||||
|
<option value="wealth">Percentage of Wealth</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<label for="levyDestination"></label>
|
||||||
|
<select id="levyDestination">
|
||||||
|
<option value="bank">To the Bank</option>
|
||||||
|
<option value="pot">To the Pot</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<button onclick="applyLevy()">Submit</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="propertyList">
|
<div id="propertyList">
|
||||||
<h2>Properties</h2>
|
<h2>Properties</h2>
|
||||||
<ul id="propertyItems"></ul>
|
<ul id="propertyItems"></ul>
|
||||||
@@ -60,66 +90,134 @@
|
|||||||
var numPlayers = 0;
|
var numPlayers = 0;
|
||||||
var accounts = [];
|
var accounts = [];
|
||||||
|
|
||||||
// Property list data
|
// Property list data
|
||||||
var properties = [
|
var properties = [
|
||||||
// Brown Properties
|
// Brown Properties
|
||||||
{ name: "Mediterranean Avenue", owner: "none", improvements: false, price: 60 },
|
{ name: "Mediterranean Avenue", owner: "none", improvements: 0, price: 60 },
|
||||||
{ name: "Baltic Avenue", owner: "none", improvements: false, price: 60 },
|
{ name: "Baltic Avenue", owner: "none", improvements: 0, price: 60 },
|
||||||
|
|
||||||
// Light Blue Properties
|
// Light Blue Properties
|
||||||
{ name: "Oriental Avenue", owner: "none", improvements: false, price: 100 },
|
{ name: "Oriental Avenue", owner: "none", improvements: 0, price: 100 },
|
||||||
{ name: "Vermont Avenue", owner: "none", improvements: false, price: 100 },
|
{ name: "Vermont Avenue", owner: "none", improvements: 0, price: 100 },
|
||||||
{ name: "Connecticut Avenue", owner: "none", improvements: false, price: 120 },
|
{ name: "Connecticut Avenue", owner: "none", improvements: 0, price: 120 },
|
||||||
|
|
||||||
// Pink Properties
|
// Pink Properties
|
||||||
{ name: "St. Charles Place", owner: "none", improvements: false, price: 140 },
|
{ name: "St. Charles Place", owner: "none", improvements: 0, price: 140 },
|
||||||
{ name: "States Avenue", owner: "none", improvements: false, price: 140 },
|
{ name: "States Avenue", owner: "none", improvements: 0, price: 140 },
|
||||||
{ name: "Virginia Avenue", owner: "none", improvements: false, price: 160 },
|
{ name: "Virginia Avenue", owner: "none", improvements: 0, price: 160 },
|
||||||
|
|
||||||
// Orange Properties
|
// Orange Properties
|
||||||
{ name: "St. James Place", owner: "none", improvements: false, price: 180 },
|
{ name: "St. James Place", owner: "none", improvements: 0, price: 180 },
|
||||||
{ name: "Tennessee Avenue", owner: "none", improvements: false, price: 180 },
|
{ name: "Tennessee Avenue", owner: "none", improvements: 0, price: 180 },
|
||||||
{ name: "New York Avenue", owner: "none", improvements: false, price: 200 },
|
{ name: "New York Avenue", owner: "none", improvements: 0, price: 200 },
|
||||||
|
|
||||||
// Red Properties
|
// Red Properties
|
||||||
{ name: "Kentucky Avenue", owner: "none", improvements: false, price: 220 },
|
{ name: "Kentucky Avenue", owner: "none", improvements: 0, price: 220 },
|
||||||
{ name: "Indiana Avenue", owner: "none", improvements: false, price: 220 },
|
{ name: "Indiana Avenue", owner: "none", improvements: 0, price: 220 },
|
||||||
{ name: "Illinois Avenue", owner: "none", improvements: false, price: 240 },
|
{ name: "Illinois Avenue", owner: "none", improvements: 0, price: 240 },
|
||||||
|
|
||||||
// Yellow Properties
|
// Yellow Properties
|
||||||
{ name: "Atlantic Avenue", owner: "none", improvements: false, price: 260 },
|
{ name: "Atlantic Avenue", owner: "none", improvements: 0, price: 260 },
|
||||||
{ name: "Ventnor Avenue", owner: "none", improvements: false, price: 260 },
|
{ name: "Ventnor Avenue", owner: "none", improvements: 0, price: 260 },
|
||||||
{ name: "Marvin Gardens", owner: "none", improvements: false, price: 280 },
|
{ name: "Marvin Gardens", owner: "none", improvements: 0, price: 280 },
|
||||||
|
|
||||||
// Green Properties
|
// Green Properties
|
||||||
{ name: "Pacific Avenue", owner: "none", improvements: false, price: 300 },
|
{ name: "Pacific Avenue", owner: "none", improvements: 0, price: 300 },
|
||||||
{ name: "North Carolina Avenue", owner: "none", improvements: false, price: 300 },
|
{ name: "North Carolina Avenue", owner: "none", improvements: 0, price: 300 },
|
||||||
{ name: "Pennsylvania Avenue", owner: "none", improvements: false, price: 320 },
|
{ name: "Pennsylvania Avenue", owner: "none", improvements: 0, price: 320 },
|
||||||
|
|
||||||
// Dark Blue Properties
|
// Dark Blue Properties
|
||||||
{ name: "Park Place", owner: "none", improvements: false, price: 350 },
|
{ name: "Park Place", owner: "none", improvements: 0, price: 350 },
|
||||||
{ name: "Boardwalk", owner: "none", improvements: false, price: 400 },
|
{ name: "Boardwalk", owner: "none", improvements: 0, price: 400 },
|
||||||
|
|
||||||
// Railroads
|
// Railroads
|
||||||
{ name: "Reading Railroad", owner: "none", improvements: false, price: 200 },
|
{ name: "Reading Railroad", owner: "none", improvements: 0, price: 200 },
|
||||||
{ name: "Pennsylvania Railroad", owner: "none", improvements: false, price: 200 },
|
{ name: "Pennsylvania Railroad", owner: "none", improvements: 0, price: 200 },
|
||||||
{ name: "B. & O. Railroad", owner: "none", improvements: false, price: 200 },
|
{ name: "B. & O. Railroad", owner: "none", improvements: 0, price: 200 },
|
||||||
{ name: "Short Line Railroad", owner: "none", improvements: false, price: 200 },
|
{ name: "Short Line Railroad", owner: "none", improvements: 0, price: 200 },
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
{ name: "Electric Company", owner: "none", improvements: false, price: 150 },
|
{ name: "Electric Company", owner: "none", improvements: 0, price: 150 },
|
||||||
{ name: "Water Works", owner: "none", improvements: false, price: 150 }
|
{ name: "Water Works", owner: "none", improvements: 0, price: 150 }
|
||||||
// Add more properties as needed
|
// Add more properties as needed
|
||||||
];
|
];
|
||||||
|
|
||||||
|
function printBalances() {
|
||||||
function printBalances() {
|
|
||||||
var output = document.getElementById("output");
|
var output = document.getElementById("output");
|
||||||
output.innerHTML = "";
|
output.innerHTML = "";
|
||||||
accounts.forEach(function(account) {
|
|
||||||
output.innerHTML += account[0] + ": " + account[1] + "<br>";
|
// Create the table element
|
||||||
|
var table = document.createElement("table");
|
||||||
|
table.classList.add("centered-table"); // Add CSS class for centering the table
|
||||||
|
|
||||||
|
// Create the table header row
|
||||||
|
var headerRow = document.createElement("tr");
|
||||||
|
var headers = ["Player", "Money", "Property"];
|
||||||
|
|
||||||
|
headers.forEach(function(headerText) {
|
||||||
|
var headerCell = document.createElement("th");
|
||||||
|
headerCell.textContent = headerText;
|
||||||
|
headerRow.appendChild(headerCell);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
table.appendChild(headerRow);
|
||||||
|
|
||||||
|
// Create the table rows for each player
|
||||||
|
accounts.forEach(function(account) {
|
||||||
|
var playerName = account[0];
|
||||||
|
var money = account[1];
|
||||||
|
var combinedPropertyValue = (playerName !== "Pot") ? calculateCombinedPropertyValue(playerName) : "";
|
||||||
|
|
||||||
|
var row = document.createElement("tr");
|
||||||
|
|
||||||
|
var playerNameCell = document.createElement("td");
|
||||||
|
playerNameCell.textContent = playerName;
|
||||||
|
row.appendChild(playerNameCell);
|
||||||
|
|
||||||
|
var moneyCell = document.createElement("td");
|
||||||
|
moneyCell.textContent = money;
|
||||||
|
row.appendChild(moneyCell);
|
||||||
|
|
||||||
|
var combinedPropertyValueCell = document.createElement("td");
|
||||||
|
combinedPropertyValueCell.textContent = (playerName !== "Pot") ? combinedPropertyValue : "";
|
||||||
|
row.appendChild(combinedPropertyValueCell);
|
||||||
|
|
||||||
|
table.appendChild(row);
|
||||||
|
});
|
||||||
|
|
||||||
|
output.appendChild(table);
|
||||||
|
}
|
||||||
|
|
||||||
|
function calculateCombinedPropertyValue(playerName) {
|
||||||
|
var combinedValue = calculatePropertyValue(playerName) + calculateImprovementsValue(playerName);
|
||||||
|
return combinedValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function calculatePropertyValue(playerName) {
|
||||||
|
var propertyValue = 0;
|
||||||
|
|
||||||
|
properties.forEach(function(property) {
|
||||||
|
if (property.owner === playerName) {
|
||||||
|
propertyValue += property.price;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return propertyValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
function calculateImprovementsValue(playerName) {
|
||||||
|
var improvementsValue = 0;
|
||||||
|
|
||||||
|
properties.forEach(function(property) {
|
||||||
|
if (property.owner === playerName) {
|
||||||
|
improvementsValue += property.improvements;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return improvementsValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function initialize() {
|
function initialize() {
|
||||||
var numPlayersInput = document.getElementById("numPlayers");
|
var numPlayersInput = document.getElementById("numPlayers");
|
||||||
@@ -148,9 +246,6 @@ var properties = [
|
|||||||
|
|
||||||
printBalances();
|
printBalances();
|
||||||
generatePlayerOptions();
|
generatePlayerOptions();
|
||||||
|
|
||||||
numPlayersInput.value = "";
|
|
||||||
startingValueInput.value = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetPropertyOwners() {
|
function resetPropertyOwners() {
|
||||||
@@ -197,21 +292,46 @@ var properties = [
|
|||||||
toAccSelect.add(allOption.cloneNode(true));
|
toAccSelect.add(allOption.cloneNode(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
function generatePropertyList() {
|
function generatePropertyList() {
|
||||||
var propertyItems = document.getElementById("propertyItems");
|
var propertyItems = document.getElementById("propertyItems");
|
||||||
propertyItems.innerHTML = ""; // Clear existing property list
|
propertyItems.innerHTML = ""; // Clear existing property list
|
||||||
|
|
||||||
properties.forEach(function(property) {
|
properties.forEach(function(property) {
|
||||||
var listItem = document.createElement("li");
|
var listItem = document.createElement("li");
|
||||||
listItem.innerHTML = `
|
listItem.innerHTML = `
|
||||||
${property.name}
|
|
||||||
<select class="ownershipDropdown" onchange="updateOwnership(this.value, '${property.name}')">
|
<select class="ownershipDropdown" onchange="updateOwnership(this.value, '${property.name}')">
|
||||||
<option value="none">None</option>
|
<option value="none">None</option>
|
||||||
${generatePlayerOptionsHTML()}
|
${generatePlayerOptionsHTML()}
|
||||||
</select>
|
</select>
|
||||||
|
${property.name} (${property.price})
|
||||||
|
<input type="number" class="improvementsInput" onchange="updateImprovements(this.value, '${property.name}')" value="${property.improvements}">
|
||||||
`;
|
`;
|
||||||
propertyItems.appendChild(listItem);
|
propertyItems.appendChild(listItem);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateOwnership(player, propertyName) {
|
||||||
|
properties.forEach(function(property) {
|
||||||
|
if (property.name === propertyName) {
|
||||||
|
property.owner = player;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
printBalances();
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateImprovements(value, propertyName) {
|
||||||
|
if (value == "") {
|
||||||
|
value = 0;
|
||||||
|
}
|
||||||
|
var newValue = parseInt(value);
|
||||||
|
properties.forEach(function(property) {
|
||||||
|
if (property.name === propertyName) {
|
||||||
|
property.improvements = newValue;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
printBalances();
|
||||||
}
|
}
|
||||||
|
|
||||||
function generatePlayerOptionsHTML() {
|
function generatePlayerOptionsHTML() {
|
||||||
@@ -224,15 +344,93 @@ var properties = [
|
|||||||
return optionsHTML;
|
return optionsHTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateOwnership(player, propertyName) {
|
|
||||||
properties.forEach(function(property) {
|
function applyLevy() {
|
||||||
if (property.name === propertyName) {
|
var levyAmountInput = document.getElementById("levyAmount");
|
||||||
property.owner = player;
|
var levyTypeSelect = document.getElementById("levyType");
|
||||||
|
var levyDestinationSelect = document.getElementById("levyDestination");
|
||||||
|
|
||||||
|
var levyAmount = parseFloat(levyAmountInput.value);
|
||||||
|
var levyType = levyTypeSelect.value;
|
||||||
|
var levyDestination = levyDestinationSelect.value;
|
||||||
|
|
||||||
|
if (isNaN(levyAmount) || levyAmount <= 0) {
|
||||||
|
alert("Invalid levy amount. Please enter a valid number greater than zero.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
switch (levyType) {
|
||||||
|
case "money":
|
||||||
|
levyBasedOnMoney(levyAmount, levyDestination);
|
||||||
|
break;
|
||||||
|
case "property":
|
||||||
|
levyBasedOnPropertyValues(levyAmount, levyDestination);
|
||||||
|
break;
|
||||||
|
case "wealth":
|
||||||
|
levyBasedOnWealth(levyAmount, levyDestination);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
alert("Invalid levy type. Please select a valid levy type.");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printBalances();
|
||||||
|
}
|
||||||
|
|
||||||
|
function levyBasedOnMoney(levyAmount, levyDestination) {
|
||||||
|
accounts.forEach(function (account) {
|
||||||
|
var money = account[1];
|
||||||
|
var levy = Math.round(money * (levyAmount / 100));
|
||||||
|
if (levyDestination === "pot") {
|
||||||
|
account[1] -= levy;
|
||||||
|
accounts[0][1] += levy; // Add to the pot
|
||||||
|
} else {
|
||||||
|
account[1] -= levy; // Remove from account
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function levyBasedOnPropertyValues(levyAmount, levyDestination) {
|
||||||
|
accounts.forEach(function (account) {
|
||||||
|
var playerPropertyValues = 0;
|
||||||
|
properties.forEach(function (property) {
|
||||||
|
if (property.owner === account[0]) {
|
||||||
|
playerPropertyValues += (property.price + property.improvements);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var levy = Math.round(playerPropertyValues * (levyAmount / 100));
|
||||||
|
|
||||||
|
if (levyDestination === "pot") {
|
||||||
|
account[1] -= levy;
|
||||||
|
accounts[0][1] += levy; // Add to the pot
|
||||||
|
} else {
|
||||||
|
account[1] -= levy; // Remove from account
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function levyBasedOnWealth(levyAmount, levyDestination) {
|
||||||
|
accounts.forEach(function (account) {
|
||||||
|
var money = account[1];
|
||||||
|
var levy = Math.round(money * (levyAmount / 100));
|
||||||
|
|
||||||
|
properties.forEach(function (property) {
|
||||||
|
if (property.owner === account[0]) {
|
||||||
|
levy += Math.round((property.price + property.improvements) * (levyAmount / 100));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (levyDestination === "pot") {
|
||||||
|
account[1] -= levy;
|
||||||
|
accounts[0][1] += levy; // Add to the pot
|
||||||
|
} else {
|
||||||
|
account[1] -= levy; // Remove from account
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function sendMoney() {
|
function sendMoney() {
|
||||||
var fromAcc = document.getElementById("fromAcc").value;
|
var fromAcc = document.getElementById("fromAcc").value;
|
||||||
var toAcc = document.getElementById("toAcc").value;
|
var toAcc = document.getElementById("toAcc").value;
|
||||||
@@ -273,5 +471,12 @@ var properties = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
|
||||||
|
<div id="footer">
|
||||||
|
Monopoly Ledger is a project of the <a href="https://www.colorado.edu/lab/medlab/">Media Economies Design Lab</a> at the University of Colorado Boulder<br />
|
||||||
|
<a href="https://git.medlab.host/MEDLab/MonopolyLedger/">Code</a> is free and open-source on an MIT license
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
19
README.md
19
README.md
@@ -6,6 +6,10 @@ This project is in keeping with the original purpose of Monopoly's predecessor,
|
|||||||
|
|
||||||
Created with the assistance of ChatGPT based on an original Python prototype.
|
Created with the assistance of ChatGPT based on an original Python prototype.
|
||||||
|
|
||||||
|
## How to use
|
||||||
|
|
||||||
|
Download the entire repository and run MonopolyLedger.html locally in a browser.
|
||||||
|
|
||||||
## Possible rules
|
## Possible rules
|
||||||
|
|
||||||
The following are example rule changes that can be tried up against the standard rules.
|
The following are example rule changes that can be tried up against the standard rules.
|
||||||
@@ -13,8 +17,9 @@ The following are example rule changes that can be tried up against the standard
|
|||||||
### Goals
|
### Goals
|
||||||
|
|
||||||
* All players win when each player has built a hotel
|
* All players win when each player has built a hotel
|
||||||
* Pay more taxes than anyone else
|
* Collectively get a hotel on every buildable space
|
||||||
* Bankrupt the bank
|
* Bankrupt the bank
|
||||||
|
* Everyone loses if you get below *x* Gini coefficient
|
||||||
|
|
||||||
### Rules
|
### Rules
|
||||||
|
|
||||||
@@ -31,7 +36,7 @@ The following are example rule changes that can be tried up against the standard
|
|||||||
* venture capital investments from bank or other players
|
* venture capital investments from bank or other players
|
||||||
* extractive or ballooning payments demanding growth
|
* extractive or ballooning payments demanding growth
|
||||||
* rule change vote
|
* rule change vote
|
||||||
* quadratic, 1p1v
|
* quadratic, 1p1v, consensus
|
||||||
|
|
||||||
## Citations
|
## Citations
|
||||||
|
|
||||||
@@ -43,11 +48,9 @@ The following are example rule changes that can be tried up against the standard
|
|||||||
|
|
||||||
* Do a game jam on alternative Monopoly rules, designing and testing them.
|
* Do a game jam on alternative Monopoly rules, designing and testing them.
|
||||||
* Use movable boxes dashboard js thing to allow moving
|
* Use movable boxes dashboard js thing to allow moving
|
||||||
|
- https://gridstackjs.com/
|
||||||
* Rules tool
|
* Rules tool
|
||||||
* Enable initial and dynamic additions of rules atop standard rules
|
* Enable initial and dynamic additions of rules atop standard rules
|
||||||
* Enable voting on rule changes: 1p1v, quadratic
|
* Add link to Git, credit, and license in footer
|
||||||
* Levies tool
|
* add Gini coefficients to balances for total wealth
|
||||||
* % of cash
|
|
||||||
* % of property values
|
|
||||||
* % of total wealth
|
|
||||||
* % of transactions
|
|
||||||
|
85
styles.css
Normal file
85
styles.css
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'Monopoly';
|
||||||
|
src: url('kabel.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: 'Monopoly', sans-serif;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
font-family: sans-serif;
|
||||||
|
margin: 20px auto;
|
||||||
|
max-width: 600px;
|
||||||
|
padding: 20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 36px;
|
||||||
|
color: white;
|
||||||
|
background-color: red;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 20px auto;
|
||||||
|
max-width: 600px;
|
||||||
|
padding: 20px;
|
||||||
|
border: 5px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="number"] {
|
||||||
|
width: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
form,
|
||||||
|
.wrap {
|
||||||
|
margin: 20px auto;
|
||||||
|
max-width: 600px;
|
||||||
|
padding: 20px;
|
||||||
|
border: 1px solid gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
.centered-table {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#setup,
|
||||||
|
#balances,
|
||||||
|
#transactions,
|
||||||
|
#levies,
|
||||||
|
#propertyList {
|
||||||
|
margin: 20px auto;
|
||||||
|
max-width: 600px;
|
||||||
|
padding: 20px;
|
||||||
|
border: 5px solid lightblue;
|
||||||
|
border-radius: 1px;
|
||||||
|
background-color: #c2e4d3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#setup h2,
|
||||||
|
#balances h2,
|
||||||
|
#transactions h2,
|
||||||
|
#levies h2,
|
||||||
|
#propertyList h2 {
|
||||||
|
font-size: 24px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#output {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#propertyItems li {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.ownershipDropdown {
|
||||||
|
padding: 5px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
Reference in New Issue
Block a user