Skip to content

Commit

Permalink
Implement game over
Browse files Browse the repository at this point in the history
  • Loading branch information
Jcparkyn committed Oct 29, 2023
1 parent f6ab651 commit fca2387
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 170 deletions.
5 changes: 3 additions & 2 deletions public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
--col-primary: #fec53c;
--col-secondary: #5183e7;
--col-cell: #2d2d2d;
--col-success: #84ff7a;
--grid-size: 14;
--grid-gap: 4px;
--default-board-size: calc((var(--cell-size) + var(--grid-gap)) * (var(--grid-size) + 1));
Expand Down Expand Up @@ -67,7 +68,7 @@ dialog {
background-color: #242421;
color: var(--col-text);
border-color: #000;
width: 300px;
width: 350px;
}

dialog::backdrop {
Expand Down Expand Up @@ -194,7 +195,7 @@ dialog > form {

.score-header {
font-family: monospace;
font-size: 1.4em;
font-size: 1.5em;
}

.bottom-action-buttons {
Expand Down
8 changes: 1 addition & 7 deletions src/Data.elm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Data exposing (CellContents(..), CellProps, CellSelection(..), Multiplier, Opponent, PlayedTurn(..), RackState, RackTile, SelectDirection(..), Tile, Tiles, getAllCellContents, playedTurnToRackState, swapDirection)
module Data exposing (CellContents(..), CellProps, CellSelection(..), Multiplier, PlayedTurn(..), RackState, RackTile, SelectDirection(..), Tile, Tiles, getAllCellContents, playedTurnToRackState, swapDirection)

import Array exposing (Array)
import Array.Extra
Expand Down Expand Up @@ -62,12 +62,6 @@ type alias Tiles =
Array2D (Maybe Tile)


type alias Opponent =
{ name : String
, score : Int
}


getAllCellContents : { board : Tiles, rack : RackState } -> Array2D CellContents
getAllCellContents model =
let
Expand Down
Loading

0 comments on commit fca2387

Please sign in to comment.