Skip to content

toulbar2/visualsudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Sudoku Application

Presentation online at description page.

The application allows to capture a grid from its own camera or to select a grid among the smartphone existing image files. Once the grid has been chosen, the application solves it and displays the solution (that it is possible to save as an image file).

Download and install on smartphone :

To download and install the 'Visual Sudoku' application on smartphone :

  1. Download the visualsudoku-release.apk APK file from Github repository :

    https://github.com/toulbar2/visualsudoku/releases/latest

  2. Click on the downloaded visualsudoku-release.apk APK file to ask for installation (you have to accept to 'install anyway' from unknown developer).

  3. In your parameter settings for the app, give permissions to the 'Visual Sudoku' application (smartphone menu 'Parameters' > 'Applications' > 'Visual Sudoku') : allow camera (required to capture grids), files and multimedia contents (required to save images as files). Re-run the app.

For more details, see the description page

Development

Desc

main.py App developed with kivy, calling toulbar2_visual_sudoku_puzzle.py from ws web services, in order to solve sudoku grid image.

Note : current version with "WS" mode, "LOCAL" mode not delivered.

App

  • code : 'app' folder

  • main.py solves sudoku by calling ws web services (see ws.py)

  • visualsudoku.kv

Python virtual environment :

  • create _kivy_venv

    pip3 install --upgrade pip wheel setuptools virtualenv
    python3 -m venv _kivy_venv
    source _kivy_venv/bin/activate
    
  • for App and kivy :

    pip3 install -r fab/requirements_ws.txt
    
  • for buildozer :

    pip3 install -r fab/requirements_buildozer.txt
    

Linux - Run App :

  • requirements_ws.txt required

  • commands :

    source _kivy_venv/bin/activate
    cd app
    python3 main.py
    

Android - Init :

  • requirements_ws.txt and requirements_buildozer.txt required

  • create :

    source _kivy_venv/bin/activate
    cd app
    buildozer init
    

=> buildozer.spec ... modify ...

Android - Build install and run App (debug) :

  • requirements_ws.txt and requirements_buildozer.txt required

  • prepare smartphone :

    • Activate "options de developpement" (cf "numero de version")
    • And into "paramètres developpeur" : USB debugging, Stay awake
  • plug in your android device and run : !!! Smartphone connected with PC/Linux (debug screen)

  • build install and run apk :

    buildozer android debug deploy run
    => bin/*-debug.apk
    
    buildozer -v android debug deploy run logcat > my_log.txt
    buildozer -v android debug deploy run logcat | grep App
    

=> .buildozer

Android - APK delivery :