data for all cards entered, incorporated. some styling
This commit is contained in:
37
client/package-lock.json
generated
37
client/package-lock.json
generated
@@ -16,6 +16,7 @@
|
|||||||
"react-dom": "^17.0.0",
|
"react-dom": "^17.0.0",
|
||||||
"react-router-dom": "^6.2.2",
|
"react-router-dom": "^6.2.2",
|
||||||
"react-scripts": "5.0.0",
|
"react-scripts": "5.0.0",
|
||||||
|
"sass": "^1.51.0",
|
||||||
"uuid": "^8.3.2",
|
"uuid": "^8.3.2",
|
||||||
"web-vitals": "^2.1.4"
|
"web-vitals": "^2.1.4"
|
||||||
}
|
}
|
||||||
@@ -8276,6 +8277,11 @@
|
|||||||
"url": "https://opencollective.com/immer"
|
"url": "https://opencollective.com/immer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/immutable": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/immutable/-/immutable-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-zIE9hX70qew5qTUjSS7wi1iwj/l7+m54KWU247nhM3v806UdGj1yDndXj+IOYxxtW9zyLI+xqFNZjTuDaLUqFw=="
|
||||||
|
},
|
||||||
"node_modules/import-fresh": {
|
"node_modules/import-fresh": {
|
||||||
"version": "3.3.0",
|
"version": "3.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
|
||||||
@@ -13830,6 +13836,22 @@
|
|||||||
"resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz",
|
||||||
"integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA=="
|
"integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA=="
|
||||||
},
|
},
|
||||||
|
"node_modules/sass": {
|
||||||
|
"version": "1.51.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/sass/-/sass-1.51.0.tgz",
|
||||||
|
"integrity": "sha512-haGdpTgywJTvHC2b91GSq+clTKGbtkkZmVAb82jZQN/wTy6qs8DdFm2lhEQbEwrY0QDRgSQ3xDurqM977C3noA==",
|
||||||
|
"dependencies": {
|
||||||
|
"chokidar": ">=3.0.0 <4.0.0",
|
||||||
|
"immutable": "^4.0.0",
|
||||||
|
"source-map-js": ">=0.6.2 <2.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"sass": "sass.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/sass-loader": {
|
"node_modules/sass-loader": {
|
||||||
"version": "12.6.0",
|
"version": "12.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz",
|
||||||
@@ -22080,6 +22102,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/immer/-/immer-9.0.12.tgz",
|
"resolved": "https://registry.npmjs.org/immer/-/immer-9.0.12.tgz",
|
||||||
"integrity": "sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA=="
|
"integrity": "sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA=="
|
||||||
},
|
},
|
||||||
|
"immutable": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/immutable/-/immutable-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-zIE9hX70qew5qTUjSS7wi1iwj/l7+m54KWU247nhM3v806UdGj1yDndXj+IOYxxtW9zyLI+xqFNZjTuDaLUqFw=="
|
||||||
|
},
|
||||||
"import-fresh": {
|
"import-fresh": {
|
||||||
"version": "3.3.0",
|
"version": "3.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
|
||||||
@@ -25943,6 +25970,16 @@
|
|||||||
"resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz",
|
||||||
"integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA=="
|
"integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA=="
|
||||||
},
|
},
|
||||||
|
"sass": {
|
||||||
|
"version": "1.51.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/sass/-/sass-1.51.0.tgz",
|
||||||
|
"integrity": "sha512-haGdpTgywJTvHC2b91GSq+clTKGbtkkZmVAb82jZQN/wTy6qs8DdFm2lhEQbEwrY0QDRgSQ3xDurqM977C3noA==",
|
||||||
|
"requires": {
|
||||||
|
"chokidar": ">=3.0.0 <4.0.0",
|
||||||
|
"immutable": "^4.0.0",
|
||||||
|
"source-map-js": ">=0.6.2 <2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"sass-loader": {
|
"sass-loader": {
|
||||||
"version": "12.6.0",
|
"version": "12.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz",
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
"react-dom": "^17.0.0",
|
"react-dom": "^17.0.0",
|
||||||
"react-router-dom": "^6.2.2",
|
"react-router-dom": "^6.2.2",
|
||||||
"react-scripts": "5.0.0",
|
"react-scripts": "5.0.0",
|
||||||
|
"sass": "^1.51.0",
|
||||||
"uuid": "^8.3.2",
|
"uuid": "^8.3.2",
|
||||||
"web-vitals": "^2.1.4"
|
"web-vitals": "^2.1.4"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import './App.css';
|
import './styles/App.css';
|
||||||
import { Routes, Route, BrowserRouter } from 'react-router-dom';
|
import { Routes, Route, BrowserRouter } from 'react-router-dom';
|
||||||
|
|
||||||
import Welcome from './components/Welcome';
|
import Welcome from './components/Welcome';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../styles/Card.css';
|
import '../../styles/Card.scss';
|
||||||
|
|
||||||
export default function Card({ state }) {
|
export default function Card({ tier, props }) {
|
||||||
const { tier, points, isWorth, cost } = state;
|
const { points, isWorth, cost } = props;
|
||||||
|
|
||||||
const mapCosts = () => {
|
const mapCosts = () => {
|
||||||
let allCosts = [];
|
let allCosts = [];
|
||||||
@@ -13,7 +13,7 @@ export default function Card({ state }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="card">
|
<div className={`card ${isWorth}`}>
|
||||||
<div className="card-row">
|
<div className="card-row">
|
||||||
<div className="value">{isWorth}</div>
|
<div className="value">{isWorth}</div>
|
||||||
<div className="points">{points} points</div>
|
<div className="points">{points} points</div>
|
||||||
|
|||||||
29
client/src/components/Cards/DeckCard.js
Normal file
29
client/src/components/Cards/DeckCard.js
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
|
export function DeckCard({ tier }) {
|
||||||
|
const [tierDots, setTierDots] = useState(null);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const singleDot = <div className="tier-dot"></div>
|
||||||
|
const mapDots = () => {
|
||||||
|
let iter = 0;
|
||||||
|
let newState = [];
|
||||||
|
while (iter < tier) {
|
||||||
|
iter++;
|
||||||
|
newState.push(singleDot);
|
||||||
|
}
|
||||||
|
setTierDots(newState);
|
||||||
|
}
|
||||||
|
|
||||||
|
mapDots();
|
||||||
|
}, [])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={`deck-card-${tier} card`}>
|
||||||
|
<div className="card-logo">SPLINTER</div>
|
||||||
|
<div className="tier-row">
|
||||||
|
{tierDots}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -2,46 +2,44 @@ import { useContext, useEffect, useState } from 'react';
|
|||||||
import { Context } from '../../store/Store';
|
import { Context } from '../../store/Store';
|
||||||
import '../../styles/GameBoard.css';
|
import '../../styles/GameBoard.css';
|
||||||
import Card from '../Cards/Card';
|
import Card from '../Cards/Card';
|
||||||
import { TierOneDeck } from '../../store/TierOneDeck';
|
import { DeckCard } from '../Cards/DeckCard';
|
||||||
import { TierTwoDeck } from '../../store/TierTwoDeck';
|
|
||||||
import { TierThreeDeck } from '../../store/TierThreeDeck';
|
|
||||||
|
|
||||||
import {v4} from 'uuid';
|
import jsonCards from '../../store/cards.json';
|
||||||
|
|
||||||
export default function GameBoard() {
|
export default function GameBoard() {
|
||||||
const [state, dispatch] = useContext(Context);
|
const [state, dispatch] = useContext(Context);
|
||||||
|
|
||||||
const [trigger, setTrigger] = useState(true);
|
const [trigger, setTrigger] = useState(true);
|
||||||
const [tierThree, setTierThree] = useState(null);
|
const [rowThree, setRowThree] = useState(null);
|
||||||
const [tierTwo, setTierTwo] = useState(null);
|
const [rowTwo, setRowTwo] = useState(null);
|
||||||
const [tierOne, setTierOne] = useState(null);
|
const [rowOne, setRowOne] = useState(null);
|
||||||
|
|
||||||
|
const { tierOne, tierTwo, tierThree } = jsonCards;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const AllDecks = [TierOneDeck, TierTwoDeck, TierThreeDeck];
|
const AllDecks = [tierOne, tierTwo, tierThree];
|
||||||
|
|
||||||
// param limit sets limit on number of cards rendered
|
// param limit sets limit on number of cards rendered
|
||||||
// param tier filters by card tier
|
|
||||||
const buildGameBoardRow = (limit, tier) => {
|
const buildGameBoardRow = (limit, tier) => {
|
||||||
let newBoard = [];
|
let newBoard = [<DeckCard tier={tier} />];
|
||||||
let iter = 0;
|
let i = 0;
|
||||||
while (iter < limit) {
|
while (i < limit) {
|
||||||
iter++;
|
i++;
|
||||||
|
if (!AllDecks[tier-1][i-1]) continue;
|
||||||
if (!AllDecks[tier-1][iter-1]) continue;
|
newBoard.push(<Card tier={tier} props={AllDecks[tier-1][i-1]} />);
|
||||||
newBoard.push(<Card key={`card-${v4()}`}state={AllDecks[tier-1][iter-1]} />);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (tier) {
|
switch (tier) {
|
||||||
case 1:
|
case 1:
|
||||||
setTierOne(newBoard);
|
setRowOne(newBoard);
|
||||||
setTrigger(false);
|
setTrigger(false);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
setTierTwo(newBoard);
|
setRowTwo(newBoard);
|
||||||
setTrigger(false);
|
setTrigger(false);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
setTierThree(newBoard);
|
setRowThree(newBoard);
|
||||||
setTrigger(false);
|
setTrigger(false);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -74,20 +72,18 @@ export default function GameBoard() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="gameboard-row">
|
<div className="gameboard-row">
|
||||||
{tierThree || 'Loading'}
|
{rowThree || 'Loading'}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="gameboard-row">
|
<div className="gameboard-row">
|
||||||
{tierTwo || 'Loading'}
|
{rowTwo || 'Loading'}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="gameboard-row">
|
<div className="gameboard-row">
|
||||||
{tierOne || 'Loading'}
|
{rowOne || 'Loading'}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Tier one length: {TierOneDeck.length} / 40</h2>
|
<div className="section-border"></div>
|
||||||
<h2>Tier two length: {TierTwoDeck.length} / 30</h2>
|
|
||||||
<h2>Tier three length: {TierThreeDeck.length} / 20</h2>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import './index.css';
|
import './styles/index.css';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
import reportWebVitals from './reportWebVitals';
|
import reportWebVitals from './reportWebVitals';
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.6 KiB |
998
client/src/store/cards.json
Normal file
998
client/src/store/cards.json
Normal file
@@ -0,0 +1,998 @@
|
|||||||
|
{
|
||||||
|
"tierOne": [
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 2,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 2,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 2,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 2,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 4,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 4
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 4,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 4,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 4,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tierTwo": [
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 5,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 5,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 2,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 5
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 5,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 5,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 5,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 5,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 5,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 5,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 1,
|
||||||
|
"cedar": 4,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 1,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 4,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 6,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 1,
|
||||||
|
"aspen": 4
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 6
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 4,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 1
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 2,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 6,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 2
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 4,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 1,
|
||||||
|
"mahogany": 2,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 2,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 2,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 2,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 6,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 6,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 5
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 2,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tierThree": [
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 7,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 7,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 6,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 6,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 7,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 6
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 6,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 7
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 7,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 6,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 5,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 5
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 5,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 5,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 5,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 7
|
||||||
|
},
|
||||||
|
"isWorth": "walnut",
|
||||||
|
"points": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 7,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
"isWorth": "aspen",
|
||||||
|
"points": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 7,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cherry",
|
||||||
|
"points": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 7,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "cedar",
|
||||||
|
"points": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cost": {
|
||||||
|
"cherry": 7,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
"isWorth": "mahogany",
|
||||||
|
"points": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
74
client/src/store/spirits.json
Normal file
74
client/src/store/spirits.json
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
{
|
||||||
|
"spirits": [
|
||||||
|
{
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 4,
|
||||||
|
"cedar": 4,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 4,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 4,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 4,
|
||||||
|
"aspen": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 3,
|
||||||
|
"cedar": 3,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 3,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 3,
|
||||||
|
"aspen": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 4,
|
||||||
|
"walnut": 0,
|
||||||
|
"cedar": 4,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cherry": 0,
|
||||||
|
"walnut": 4,
|
||||||
|
"cedar": 0,
|
||||||
|
"mahogany": 0,
|
||||||
|
"aspen": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
.App {
|
.App {
|
||||||
background-color: purple;
|
background-color: purple;
|
||||||
height: 100vh;
|
height: 175vh;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.gameboard {
|
.gameboard {
|
||||||
|
margin-top: 5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 95vw;
|
width: 95vw;
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
.card {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
border: 1px solid black;
|
|
||||||
width: 20vw;
|
|
||||||
height: 30vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-row {
|
|
||||||
display: inline-flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 0.7rem;
|
|
||||||
height: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bottom-row {
|
|
||||||
align-items: flex-end;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tier {
|
|
||||||
display: inline-block;
|
|
||||||
height: 2rem;
|
|
||||||
width: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tier-3 {
|
|
||||||
background-color: blue;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tier-2 {
|
|
||||||
background-color: yellow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tier-1 {
|
|
||||||
background-color: green;
|
|
||||||
}
|
|
||||||
80
client/src/styles/Card.scss
Normal file
80
client/src/styles/Card.scss
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
// universal card style
|
||||||
|
.card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
border: 1px solid black;
|
||||||
|
width: 15vw;
|
||||||
|
height: 30vh;
|
||||||
|
// styling for face-up (in-play) cards
|
||||||
|
.card-row {
|
||||||
|
display: inline-flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0.7rem;
|
||||||
|
height: 50%;
|
||||||
|
.tier {
|
||||||
|
display: inline-block;
|
||||||
|
height: 2rem;
|
||||||
|
width: 2rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
&-3 {
|
||||||
|
background-color: blue;
|
||||||
|
}
|
||||||
|
&-2 {
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
|
&-1 {
|
||||||
|
background-color: green;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.bottom-row {
|
||||||
|
align-items: flex-end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// style for individual card "suits"
|
||||||
|
.cedar {
|
||||||
|
background-color: limegreen;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mahogany {
|
||||||
|
background-color: rgb(143, 75, 75);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aspen {
|
||||||
|
background-color: wheat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.walnut {
|
||||||
|
background-color: rgb(79, 28, 28);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cherry {
|
||||||
|
background-color: brown;
|
||||||
|
}
|
||||||
|
|
||||||
|
// for first-row deck cards
|
||||||
|
.deck-card {
|
||||||
|
&-1 {
|
||||||
|
background-color: green;
|
||||||
|
}
|
||||||
|
&-2 {
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
|
&-3 {
|
||||||
|
background-color: blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tier-dot {
|
||||||
|
display: inline-flex;
|
||||||
|
background-color: white;
|
||||||
|
border: 2px solid black;
|
||||||
|
height: 1.5rem;
|
||||||
|
width: 1.5rem;
|
||||||
|
margin: 0.25rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
.gameboard-title {
|
.gameboard-title {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -10,3 +11,10 @@
|
|||||||
width: 90vw;
|
width: 90vw;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-border {
|
||||||
|
display: block;
|
||||||
|
background-color: black;
|
||||||
|
width: 100%;
|
||||||
|
height: 2rem;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user