Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.45 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.45 KB

Sudoku Multiplayer

Prerequisites

You need to download and install:

How to run Sudoku?

  1. Compile Java Classes

From main project folder, run: cd src/generator && javac *.java.

  1. Install necessary npm dependencies

Inside main project folder, run this command:

npm i socket.io express express-session nodemon mysql ejs
  1. Configure database

From main project folder, run: (-p requires password) mysql -u your_name -p < db.sql

Inside server.js code, in line 13, set your connection as following:

host: 'localhost',
user: 'your_name',
password: 'your_password',
database: 'sudokuDB',
 }); 

Tested and worked on MySQL 8.0.21.

  1. Run the script inside your terminal:

npm run start

To test the game, server runs on port 8080, so in your browser, go into 127.0.0.1:8080. Create an account and log into the game, then either join or create a new room. For a bit more global testing, you can use and configure as written at https://localhost.run/.