Code Monkey home page Code Monkey logo

semantit's People

Contributors

federico3 avatar

Watchers

 avatar

semantit's Issues

Won't stop providing hints after you guess right

The current implementation has a kind-of-nice behavior where you can continue guessing and receiving hints after you win. However, once you get to 999/1000 (word rank 1), the number of remaining hints should go to zero and it doesn't. This is because we stop giving hints once we get to word 1 exactly. If we get to the solution skipping 1, _closest_guess_rank is set to 0, and we never stop giving hints.

if (_closest_guess_rank === 1) { // No more hints after you get within one of the answer

Simple solution: stop giving hints when you get to rank 1 or 0. Once you get to 0, you get the full list of 1k words anyway.

Add hints

A fixed number of hints.
Return a word ~1/3 of the way closer to the solution than what you have now.
If outside the 1000-word range, return something in the bottom 100 randomly.
Never ever return the solution.

Show past solutions.

  • Frontend: find a place for this
  • Backend: provide a separate summary in the folder so we don't have to load the entire DB.

Evidenzia in modo diverso le parole suggerite

Al momento evidenziamo (i) l'ultima parola inserita (nel menu principale) e (II) le parole indovinate (nella soluzione). Vorremmo evidenziare in modo diverso le parole suggerite.

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.