Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script type="module" src="/src/main.ts" defer></script>
<meta name="description" content="Play Scalade Online is a place to play
the trick-taking card game Scalade against bot players
in-browser." />
in-browser.">
</head>

<body>
Expand Down
3 changes: 2 additions & 1 deletion src/game/gamestate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class GameState {
public deadCards: Card[] = [];
public publicCards: Card[] = [];
public renounces: Set<number>[] = [];
public rawLadders: [Card, Player | null | 'trickwinner'][] = this.getStartingLadders();
public rawLadders: [Card, Player | null | 'trickwinner'][];
public _trumpSuit: Suit = arbitrarySuit;
public currentState: state = 'initialiseGame';
public suitRungsAscended: advanceSuitTracker = new advanceSuitTracker();
Expand All @@ -89,6 +89,7 @@ export class GameState {
for (const name of playerNames) {
this.players.push();
}
this.rawLadders = this.getStartingLadders();
// choose a random initial dealer
this.dealerIndex = Math.floor(Math.random() * playerNames.length);
// dummy values:
Expand Down
12 changes: 6 additions & 6 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ body {
position: relative;
width: 800px;
height: 450px;
top: 30px;
top: 10px;
margin: 20px auto;
border: 2px solid #fff;
border-radius: 10px;
Expand All @@ -115,6 +115,7 @@ body {
position: absolute;
text-align: center;
border: black 1px;
width: 50%;
}

.player-area.player {
Expand All @@ -125,12 +126,12 @@ body {

.player-area.comp1 {
top: 20px;
left: 30px;
left: -10px;
}

.player-area.comp2 {
top: 20px;
right: 30px;
right: -10px;
}

.ladder.neutral {
Expand Down Expand Up @@ -362,7 +363,6 @@ body {

#advance-holder {
position: relative;
top: -10px;
left: 50px;
}

Expand Down Expand Up @@ -412,15 +412,15 @@ body {

.penultimate-cards {
position: absolute;
right: -20px;
right: 0px;
top: 20px;
width: 200px;
text-align: center;
}

.dead-cards {
position: absolute;
right: 125px;
right: 145px;
top: 20px;
width: 200px;
text-align: center;
Expand Down