All Projects → wojtek-kalicinski → Sudoku Android

wojtek-kalicinski / Sudoku Android

Licence: apache-2.0
Sudoku sample app for Android, Web and iOS using Koltin/JVM + Kotlin/JS + Kotlin/Native

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Sudoku Android

Battery
cross-platform, normalized battery information library
Stars: ✭ 170 (-5.03%)
Mutual labels:  cross-platform
Alimer
Cross-platform game engine.
Stars: ✭ 172 (-3.91%)
Mutual labels:  cross-platform
Tinywindow
a cross platform (Linux and Windows) OpenGL window library in a single header
Stars: ✭ 175 (-2.23%)
Mutual labels:  cross-platform
Brook
Brook is a cross-platform strong encryption and not detectable proxy. Zero-Configuration. Brook 是一个跨平台的强加密无特征的代理软件. 零配置.
Stars: ✭ 12,694 (+6991.62%)
Mutual labels:  cross-platform
Restyle
Stars: ✭ 171 (-4.47%)
Mutual labels:  cross-platform
Flutter Web Demo
🌍 Responsive web app powered by Flutter and Dart
Stars: ✭ 173 (-3.35%)
Mutual labels:  cross-platform
Timelapse
🎬 Native macOS app for recording timelapse videos of your desktop.
Stars: ✭ 169 (-5.59%)
Mutual labels:  cross-platform
Robot
Native cross-platform system automation
Stars: ✭ 178 (-0.56%)
Mutual labels:  cross-platform
Scapix
Scapix Language Bridge
Stars: ✭ 171 (-4.47%)
Mutual labels:  cross-platform
Black
World's fastest HTML5 2D game engine   🛸
Stars: ✭ 174 (-2.79%)
Mutual labels:  cross-platform
Flameshot
Powerful yet simple to use screenshot software 🖥️ 📸
Stars: ✭ 15,429 (+8519.55%)
Mutual labels:  cross-platform
Wiki
Wiki.js | A modern and powerful wiki app built on Node.js
Stars: ✭ 14,985 (+8271.51%)
Mutual labels:  cross-platform
Coverlet
Cross platform code coverage for .NET
Stars: ✭ 2,303 (+1186.59%)
Mutual labels:  cross-platform
Gsy github app flutter
Flutter 超完整的开源项目,功能丰富,适合学习和日常使用。GSYGithubApp系列的优势:我们目前已经拥有Flutter、Weex、ReactNative、kotlin 四个版本。 功能齐全,项目框架内技术涉及面广,完成度高,持续维护,配套文章,适合全面学习,对比参考。跨平台的开源Github客户端App,更好的体验,更丰富的功能,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验Σ( ̄。 ̄ノ)ノ。同款Weex版本 : https://github.com/CarGuo/GSYGithubAppWeex 、同款React Native版本 : https://github.com/CarGuo/GSYGithubApp 、原生 kotlin 版本 https:…
Stars: ✭ 12,920 (+7117.88%)
Mutual labels:  cross-platform
Nativescript Schematics
nativescript, mobile, schematics, angular
Stars: ✭ 176 (-1.68%)
Mutual labels:  cross-platform
Covscript
Covariant Script Interpreter
Stars: ✭ 169 (-5.59%)
Mutual labels:  cross-platform
Gtk Fortran
A GTK / Fortran binding
Stars: ✭ 171 (-4.47%)
Mutual labels:  cross-platform
Gwork
Skinnable GUI with useful widget collection. Fork of GWEN.
Stars: ✭ 179 (+0%)
Mutual labels:  cross-platform
Akavache
An asynchronous, persistent key-value store created for writing desktop and mobile applications, based on SQLite3. Akavache is great for both storing important data as well as cached local data that expires.
Stars: ✭ 2,185 (+1120.67%)
Mutual labels:  cross-platform
Icongenie
CLI tool to generate all the icons and splashscreens for your Quasar Apps
Stars: ✭ 174 (-2.79%)
Mutual labels:  cross-platform

Sudoku Playground #️⃣ (work-in-progress sample 👷)

This is not an official Google product

Sudoku Playground is a work-in-progress sudoku game app for Android, Web (JS) and iOS.

It's a hobby project to learn about Android APIs, libraries and best practices. It contains a functional sudoku board generator and solver, as well as UI so that you can actually play a sudoku board from start to finish.

This project is also an exploration of business logic code sharing between platforms using Kotlin Multiplatform.

At the same time, this app is not meant to showcase the best-in-class sudoku algorithms - the ones implemented are good enough for this sample.

Android development

Some tech you can find inside:

  • Entirely written in Kotlin (+ some Swift for iOS UI)
  • The sudoku generator/solver is a pure Kotlin common module, included from the Android, iOS and JavaScript frontends
  • Uses Architecture Components: ViewModels and LiveData
  • Uses Data Binding to connect views to ViewModels (and observes LiveData!)
  • Uses dagger-android for dependency injection
  • Uses Android App Links to open deep links directly into the app, and also provides an Instant App version from the same project

To showcase the power of Kotlin multiplatform, some additional considerations were made:

  • Sudoku boards are generated using a deterministic algorithm shared between frontends, i.e. given a pseudo-random number generator (PRNG) initialized with the same seed, you will always get the same board
  • Android app supports sharing and opening deep links containing a seed number used to initialize the board (e.g. https://sudokuplayground.firebaseapp.com/sudoku/1234)
  • The website counterpart to the Android app is hosted under the same URLs and will show the same board when opened in a web browser, thanks to the shared, deterministic algorithm

Development setup

You require the latest Android Studio 3.4 (or newer) to be able to build the app.

Contributions

If you've found an error in this sample, please file an issue.

Patches are encouraged, and may be submitted by forking this project and submitting a pull request. Since this project is still in its very early stages, if your change is substantial, please raise an issue first to discuss it.

License

Copyright 2018 Google LLC

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for
additional information regarding copyright ownership. The ASF licenses this
file to you 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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].