Skip to content
karlikpPublic

About

The Sudoku Web Game is a Java-based application running on Payara Server, utilizing Apache Derby for data storage. It offers multiple difficulty levels and user progress tracking.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

✏️ Web Sudoku Game

A Sudoku game with the ability to register players and save their moves to a database.

Table of contents:

  1. Requirements
  2. Instalation
  3. Usage
  4. Gallery

1. Requirements:

  • Apache Maven,
  • Apache Derby,
  • Payara server.

2. Instalation:

  • 2.1 Download Apache Maven:

    🔗 https://maven.apache.org/download.cgi

    Download the "Binary zip archive" (e.g., apache-maven-3.9.6-bin.zip).

  • 2.2 Extract the ZIP file:

    Extract it to a directory, for example:

    C:\apache-maven

  • 2.3 Add Maven to system environment variables:

    Click Start → Type "Environment Variables" → Edit system environment variables. In the System Variables section, find Path, click Edit, and add a new entry:

    C:\apache-maven\bin

    Click OK and close all windows.

  • 2.4 Verify the installation:

    Open Command Prompt (cmd) and type: mvn -version

    You should see something like this:

    Apache Maven 3.x.x
    Maven home: C:\apache-maven
    Java version: 17.0.x
    
  • 2.5 Download Apache Derby:

    🔗 https://db.apache.org/derby/releases/release-10_17_1_0.cgi

    Download the "db-derby-10.17.1.0-bin.zip" version.

  • 2.6 Extract the ZIP file:

    Extract it to a directory, for example C:\apache_derby

  • 2.7 Download Payara Server on Windows:

    🔗 https://www.payara.fish/downloads/

    Download the Payara Server Full version.

  • 2.8 Extract the ZIP file:

    Extract it to a directory, for example C:\payara_server

  • 2.9 Configure Environment Variables (Optional)

    Open Control Panel → System → Advanced System Settings → Environment Variables. Under System Variables, find Path, click Edit, and add: C:\path\to\your\payara\bin Click OK to save changes.

  • 2.10 Clone the Sudoku_java repository:

    git clone https://github.com/karlikp/Sudoku.git
    

3. Usage:

  • 3.1 Starting the Apache Derby DB Server

Navigate to the your apache_derby directory, for example:

cd C:\apache_derby\bin

Start the DB server:

./startNetworkServer

Create empty dabase with ij tool :

./ij
CONNECT 'jdbc:derby://localhost:1527/sudoku;create=true';
EXIT;
  • 3.2 Starting the Payara Application Server

Navigate to the Payara server directory:

cd /path/to/your/payara_server/bin

Start the server:

./asadmin start-domain
  • 3.3 Build the Sudoku Application

Go to app_source folder :

cd path/to/Sudoku/app_source

Build the project:

mvn clean package
  • 3.4 Deploying the Sudoku Application

Navigate to the app_source directory:

cd path/to/Sudoku/app_source/target

You should saw Sudoku_Web-1.0.war.

Deploy the application to Payara:

/path/to/payara_server/bin/asadmin deploy Sudoku_Web-1.0.war

Check deployment status:

/path/to/your/payara_server/bin/asadmin list-applications

If you see "Sudoku_Web-1.0", the application has been successfully deployed.

Open the application in a browser:

http://localhost:8080/Sudoku_Web-1.0

4. Gallery:

menu

Fig. 1. Start page


menu

Fig. 2. Gameplay


menu

Fig. 3. Example of information about unauthorized movement


menu

Fig. 4. Movements history of current game


menu

Fig. 5. Game Database


About

The Sudoku Web Game is a Java-based application running on Payara Server, utilizing Apache Derby for data storage. It offers multiple difficulty levels and user progress tracking.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages