Code Monkey home page Code Monkey logo

wordsoup's Introduction

Word Search

The Word Search game made with Dart and Flutter.

Installing

For help getting started with Flutter, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Clone this project, then run flutter pub get to get the dependencies and flutter pub run build_runner build to generate the code related to JSON parsing.

Connect your device or start your emulator and write on your console flutter run or create an APK/IPA with flutter build android/flutter build ios.

You can run from web from the web-version branch.

Use cases

This apps use a modified version of this Multi Select child grid. You could find this useful when building a big layout that wraps around a Gesture Detector and need to get which widget is below the user is finger.

Other than that, the word creating algorithm works with a random that generates the word direction (vertical, horizontal, and diagonal), generates the random word and a initial position. The initial position is generated by force-bruiting checking all the possible positions and getting the first one that fits. This method could fail if the word can't be added in that direction. If that is the case, there's a method that generatesWithFallback, which uses all the possible words in the first generated direction. If no word can be added, the board is restarted and the process goes all over again until the board completes and the UI changes.

The algorithm is supposed to run as async code,and while it's running, show a progress bar. The UI changes almost immediately with the new board, it's not the desired behavior, but the code runs too fast so ¯\(ツ)

Contributing

This is a college project for the time being. I probably won't accept PR but I will look into issues.

wordsoup's People

Contributors

eagskunst avatar selasdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.