diff --git a/client/src/Board.css b/client/src/Board.css
index a0ce1fd..5a91a11 100644
--- a/client/src/Board.css
+++ b/client/src/Board.css
@@ -1,10 +1,13 @@
.Board {
display: flex;
align-self: stretch;
- position: relative;
+ position: absolute;
flex: 1;
align-items: stretch;
- margin-right: 30rem;
+ right: 30rem;
+ left: 0;
+ top: 0;
+ bottom: 11rem;
}
/* Offset 'BorderBox' such that 0,0 is the center
diff --git a/client/src/BoardPieces.css b/client/src/BoardPieces.css
index 30d2acc..d055500 100644
--- a/client/src/BoardPieces.css
+++ b/client/src/BoardPieces.css
@@ -6,7 +6,6 @@
height: 6rem;
right: 30rem;
bottom: 11rem; /* 1rem over top of Resource cards in hand */
- width: 20rem;
z-index: 1000;
padding-bottom: 0.5rem;
margin-bottom: 0.5rem;
diff --git a/client/src/PlayersStatus.css b/client/src/PlayersStatus.css
index b77b043..26d0581 100644
--- a/client/src/PlayersStatus.css
+++ b/client/src/PlayersStatus.css
@@ -14,10 +14,16 @@
bottom: 11rem; /* 1rem over top of Resource cards in hand */
align-items: flex-end;
pointer-events: all;
+ left: auto;
}
.PlayersStatus .Player {
margin-bottom: 0.5rem;
+ border-bottom: 1px solid black;
+}
+
+.PlayersStatus.ActivePlayer .Player {
+ border-bottom: none;
}
.PlayersStatus .Player .Who {
@@ -26,10 +32,24 @@
align-items: center;
}
+.PlayersStatus.ActivePlayer .Who {
+ display: flex;
+ justify-content: flex-end;
+ padding-right: 0.5rem;
+}
+
+.PlayerStatus.ActivePlayer .Resource {
+ margin: 0.5rem 0 0 0.5rem;
+}
+
.PlayersStatus .What {
- margin-left: 0.25rem;
- margin-top: 0.25rem;
- margin-right: 0.25rem;
+ margin: 0.25rem;
+ display: flex;
+ flex-direction: column;
+}
+
+.PlayersStatus.ActivePlayer .What {
+ align-items: flex-end;
}
.PlayersStatus .PlayerColor {
@@ -39,7 +59,7 @@
.PlayersStatus .Shrunken {
position: relative;
- height: 5.75rem;
+ height: 4.75rem;
display: flex;
}
@@ -49,11 +69,6 @@
display: flex;
}
-.PlayersStatus .Shrunken {
- position: relative;
- height: 5.75rem;
- display: flex;
-}
.PlayersStatus .BoardPieces {
align-items: flex-end;
@@ -78,11 +93,33 @@
width: 2.1rem;
background-size: contain;
pointer-events: none;
- margin: 0 0.125rem;
+ margin: 0.75rem 0.5rem 0 0;
border-radius: 2px;
filter: brightness(150%);
}
+.PlayersStatus .Has {
+ display: flex;
+ align-items: flex-end;
+}
+
+.PlayersStatus .Placard {
+ /*
+ width: 9.4em;
+ height: 11.44em;
+ */
+ width: 3rem;
+ height: 3.64rem;
+ background-size: 108%;
+ box-sizing: border-box;
+ border-radius: 2px;
+ border: 1px solid #fff;
+ margin: 0 0.25rem 0 0;
+}
+
+.PlayersStatus.ActivePlayer .Placard {
+ margin-left: 0.25rem;
+}
.PlayersStatus .Points .Resource {
display: inline-flex;
@@ -94,8 +131,7 @@
border-radius: 50%;
border: 2px solid #444;
background-size: 130%;
- margin-left: -0.625rem;
- margin-bottom: 0.5rem;
+ margin: 0 0 0 -0.625rem;
}
.PlayersStatus .Points .Resource:first-child {
diff --git a/client/src/PlayersStatus.js b/client/src/PlayersStatus.js
index 26b963b..1e001a8 100644
--- a/client/src/PlayersStatus.js
+++ b/client/src/PlayersStatus.js
@@ -4,55 +4,88 @@ import "./PlayersStatus.css";
import BoardPieces from './BoardPieces.js';
import { getPlayerName } from './Common.js';
import PlayerColor from './PlayerColor.js';
+import Placard from './Placard.js';
-const Player = ({ table, color, onClick }) => {
- const player = table.game.players[color];
+const Player = ({ table, color, onClick, reverse }) => {
+ if (!table.game) {
+ return <>>;
+ }
+ const game = table.game;
+ const player = game.players[color];
const developmentCards = player.unplayed ?
Steal 1 resource card from the owner of an adjacent settlement or city.
-You may only play one development card during your turn -- either one - knight or one progress card.
>; + description = <> +You only reveal your victory point cards when the game is over, either + description = <>
Play 2 new roads as if you had just built them.
-This is still limited by the number of roads you have. If you do not have enough roads +
You currently have {table.game.player.roads} roads remaining.
+ you can place will be reduced.When you play this card, you will select 1 type of resource. - All other players must give you all their resource cards of that type.
+Unfortunately the current implementation only lets you pick a single - resource and you will then get 2 of those.
+