Hi, I am developing a game in Elm 0.17. I am doing a memotest.
I want to create my own Cmd.
Here is what I want to do, I have in my:
type Msg = FlipCard Int Card.Msg
So every time I click on a card, this one calls that msg and flips the card.
In my model, i have the List Card and GameState whe
Hi, I have developed a memotest in Elm 0.17.
My Model is the following:
type alias Model = List IndexedCard
type alias IndexedCard = { id : Int, model : Card.Model }
where Card.Model is a module where I modeled a single card.
So now the game is working but the cards of the memotest always appea
= newTime }, Cmd.none)
El sábado, 18 de junio de 2016, 21:51:34 (UTC-3), Juan Martin Buireo
escribió:
>
> Thanks again for the response. The problem is the following:
>
> My model is:
> type alias Model = { cards : List IndexedCard, startTime : Time,
> currentTime : Time }
&g
Thanks again for the response. The problem is the following:
My model is:
type alias Model = { cards : List IndexedCard, startTime : Time,
currentTime : Time }
And I have a subscription where I do:
subscriptions : Model -> Sub Msg
subscriptions model = Time.every Time.second Tick
So with this,
s started. Taking the difference between the current time and
> startTime gives you the first quantity you wanted. To get the second
> quantity, write (t % 60) // 1. The (//) operation rounds it down, and the
> (%) operation does the rest.
>
>
> On Saturday, June 18, 2016 at 7:
Hi, I am currently developing an elm-game in version 0.17
I read the guide and the example about the time
(http://guide.elm-lang.org/architecture/effects/time.html). I understood
the example but now I need to use that to make something similar.
What i need to do is a chronometer. The chronomete
Hi, I need to make a function and I am having some trouble.
In Haskell I know how to do it but here in Elm is differente due to the
implementation of Lists.
I have a huge list and I want to check if all elements in the list are the
same. I have a Haskell function that works but in Elm it does
Hi, I am new to Elm and I want to make a game.
I've been reading about Elm's new version 0.17. I read the whole guide and
the examples. The problem is that I found the examples quite "simple". By
simple I mean short.
I wanted to see a full example of a real implementation or a full game to
un