show the tiles remaining in the wall

This commit is contained in:
Correl Roush 2017-11-21 20:47:08 -05:00
parent 076586eb1b
commit 22f759a76c
2 changed files with 12 additions and 6 deletions

View file

@ -59,5 +59,6 @@ player =
game : Decoder Game
game =
map Game
map2 Game
(field "players" (list player))
(field "wall" int)

View file

@ -5,12 +5,17 @@ import Html exposing (..)
type alias Game =
{ players : List Player }
{ players : List Player
, wall : Int
}
view : Game -> Html msg
view game =
div [] <|
div []
[ div [] [ text (toString game.wall) ]
, div [] <|
List.map
Client.Player.view
game.players
]