GithubHelp home page GithubHelp logo

varuns2002 / flutter-sudoku Goto Github PK

View Code? Open in Web Editor NEW
87.0 4.0 41.0 1.52 MB

This is a fully fledged Sudoku game written in Dart using Flutter.

Home Page: https://sudoku-vs2002.web.app/

License: GNU General Public License v3.0

Kotlin 0.16% Dart 59.51% HTML 3.40% CMake 12.34% C++ 22.61% C 0.96% JavaScript 0.22% CSS 0.79%
dart flutter android ios pwa web-app linux fuschia sudoku game single-player windows macos

flutter-sudoku's Introduction

icon_square

Flutter-Sudoku

APK: v2.4.0 EXE: v2.4.0 Web: v2.4.1 License: GPL v3

This is a fully fledged Sudoku game written in Dart using Flutter.

It can be exported to Android, iOS, Fuchsia, Windows, Linux, MacOS, PWA or a Web App.

Installation & Usage:

Building:

Requirements:

  • Flutter

  • For Exporting to Android:

  • For Exporting to Web:

    • Set current working directory to sudoku

    • Run these commands:

       flutter config --enable-web
      
  • For Exporting to Windows:

    • Set current working directory to sudoku

    • Run these commands:

       flutter config --enable-windows-desktop
      

Installing required packages

  1. Clone this repository

  2. Set current working directory to sudoku

  3. Run these commands:

    flutter pub get
    flutter pub upgrade
    flutter pub outdated
    
  • This will install all the required packages
  1. Run flutter doctor to check fo any issues (Optional)

Steps for exporting to a PWA or Web App

  1. Set current working directory to sudoku

  2. Run flutter build web --release

  • This will compile the program and store the files in the sudoku/build/web directory

  • You can run a simple http server in this directory to run your app in the browser

  • dhttpd is a Dart package for running a simple http server

Steps for exporting to Windows

  1. Set current working directory to sudoku

  2. Run flutter build windows --release

  • This will compile the program and store the files in the sudoku/build/windows/runner/Release directory

  • It will export a release build that can be run directly

Steps for exporting to Android

  1. Set current working directory to sudoku

  2. To export as an Android app run:

    flutter build apk to build a fat APK for all ABIs

    OR

    flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi to build multiple APKs for every ABI

  • This will export a release build of the apk file signed with debug keys which can be installed on an Android phone or emulator

  • The APK file/s will be saved in sudoku/build/app/outputs/flutter-apk

  • Minimum Android Version Required : Android 4.1.x Jellybean (API Level 16)

Features:

  • Generates a New Game when you start the app

  • Clicking a box displays a dialog with buttons 1-9 to input in the box

  • Clickable buttons will initially have no number and will turn red after the first click

  • Long pressing a button will erase your input

  • After completely solving the grid, if the solution is correct it will alert you that you successfully solved the Sudoku

  • The numbers in all the clickable buttons will turn blue if the solution is correct (This will also happen if you click Show Solution)

  • 4 different difficulty levels to choose from :

    • Beginner - 18 empty squares
    • Easy - 27 empty squares
    • Medium - 36 empty squares
    • Hard - 54 empty squares
  • New Game

  • Restart Game

  • Show Solution

  • Dark and Light theme

  • Various Accent Colors to choose from

  • Material Design

Note:

Screenshots:

  • Main Screen while solved with dark theme:

    Solved_Dark

  • Main Screen while solving with light theme:

    Solving_Light

  • Choose Number Alert:

    Choose

  • Game Over Alert Box:

    Result

  • Options:

    Options

  • Windows with Violet Accent Color:

    Windows_Violet

flutter-sudoku's People

Contributors

varuns2002 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

flutter-sudoku's Issues

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.