Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add: Negative sign if count is negative #7
this isn't quite the solution we want. on the top level, we don't want this leading blank spot:
we just want
you'll find some code like this.
str = minLen 3 (String.fromInt n)
String.fromInt -4 == "-4`
so what happens to that
toInt string = case String.toInt string of Just num -> num Nothing -> 0
we're currently going from an
forChar looks good!
We’re splitting a string into a list of strings and then toChar is doing some work to get a Char. I think we could use this instead! https://package.elm-lang.org/packages/elm/core/latest/String#toList
Fix: add a negative sign if the number of bombs placed are greater than then number existing Fix: minesweeper.png to better display positive and negative signs Fix: display of negative signs Formatting Fix: to use String.toList formatting