GudiedRyan / flask-sudoku

A full stack sudoku game that utilizes the sudoku solver I built to provide hints
0 stars 0 forks source link

Plan layout interface #1

Open GudiedRyan opened 3 years ago

GudiedRyan commented 3 years ago

Determine how we want to create the table for users to interact with in a quick, responsive way:

General Structure

I want it to look like a Sudoku board, so an evenly spaced table in which one can input numbers onto a grid exactly like a puzzle itself. To prevent tedium, any blank square will be interpreted as a zero for the program. If any input is submitted other than a blank or an integer, use form validation to prevent it from submitting and creating a mess.

Packages

Visuals Pretty much just need Bootstrap, may need to utilize CSS Grid to make it all line up properly. Form Logic WTForms should suffice for it, will most likely want sessions to make sure it doesn't vanish.

Users and accounts for saving puzzles?

Just an idea for brainstorming, but I could bring in SQLAlchemy and create tables to help remember past puzzle actions/solutions, or save puzzles in a database so if they wanted to move on without abusing hints.

This also enables a "difficulty mode" which will allow users to filter the number of hints they can use.

GudiedRyan commented 3 years ago

Account decision

For the base project, there will be no users. Basically it will just be session based. Once that is configured, user accounts and saving puzzles will be added, along with the necessary MySQL/SQLAlchemy packages.

Packages needed for basic app

I need WTForms, the Sudoku Solver API, and most likely sessions.