Giter VIP home page Giter VIP logo

Comments (5)

AAB999 avatar AAB999 commented on September 28, 2024 1

No, it is not fixed yet.... i just encountered the same issue while testing, and found the solution also by myself and thinking, maybe this fault is on purpose to test our understanding of the function because it is so easy to see?... :-)

from basic-android-kotlin-compose-training-unscramble.

tugceaktepe avatar tugceaktepe commented on September 28, 2024

Yes, you're right. I spotted it, too. Because init block in GameViewModel calls resetGame(). In this function, a new instance of GameUiState with shuffled word is created for _uiState. So, currentWordCount takes default value, 0. I'm sure this mistake will be fixed, soon.

from basic-android-kotlin-compose-training-unscramble.

android-dev-lxl avatar android-dev-lxl commented on September 28, 2024

@tugceaktepe
@AAB999
@myhency

Could you please check now.
This should have been fixed!

from basic-android-kotlin-compose-training-unscramble.

enikebraimoh avatar enikebraimoh commented on September 28, 2024

@android-dev-lxl this has not been fixed on the Codelab it still states
val currentWordCount: Int = 0, val score: Int = 1,
when the object is created, currentWordCount should be 1 and score should be 0

from basic-android-kotlin-compose-training-unscramble.

osuleymanova avatar osuleymanova commented on September 28, 2024

Hello @enikebraimoh,

Thank you for reaching out to us. The typo is fixed:

Screenshot 2023-05-31 at 4 14 51 PM

from basic-android-kotlin-compose-training-unscramble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.