GithubHelp home page GithubHelp logo

bhanditz / wordchunks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from param-harrison/wordchunks

0.0 2.0 0.0 14.6 MB

Build six words that have one theme in common and known length.

Home Page: https://play.google.com/store/apps/details?id=com.appchamp.wordchunks

Kotlin 100.00%

wordchunks's Introduction

WordChunks: Riddle Game

Find hidden words in a grid of chunks.

WordChunks is a word game that test your knowledge of dictionary and spelling. The six hidden words are broken into chunks of two, three or four letters and shuffled in a grid. You have to tap the chunks in the correct order to unscramble the words. There is no time limit and you can find the words in any order.

Get it on Google Play

  • Easy to play, hard to beat!
  • Unlock levels and packsLiveData by solving them. The more you play, the better you get at it.
  • Made with love, and with pets.
  • No pay to play, no pay to win.

Changelog

[1.3.beta] - 7/17/2017
ADDED:
  • New anonymous authentication.
  • New store to purchase more hints.
  • New animations.
CHANGED:
  • Fix phrasing and spelling in Russian translation.

How my old app version looked like:

Some pleasant surprises for me while refactoring Java -> Kotlin


Java (250 characters)

private String chunksToString(List<Chunk> chunks) {
  StringBuilder str = new StringBuilder();
  for (Chunk chunk : chunks) {
      str.append(chunk.getChunk());
  }
  return str.toString();
}

tvInputChunks.setText(chunksToString(chunks));

Kotlin (extension method) (134 characters)

fun List<Chunk>.chunksToString(): String = map { it.chunk }.joinToString(separator = "")

tvInputChunks.text = chunks.chunksToString()

License

Copyright 2017 Julia Kozhkhovskaya

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

wordchunks's People

Contributors

jkozh avatar

Watchers

James Cloos 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.