Skip to content

TicTacToe multiplayer game using Kotlin Multiplatform

License

Notifications You must be signed in to change notification settings

MFori/Piskvorky

Repository files navigation

Piskvorky

Piskvorky is TicTacToe multiplayer game build with Kotlin Multiplatform.

Table of Contents

Technologies

Project is using these technologies and libraries:

Installation

1. Clone this repository

git clone https://github.com/MFori/Piskvorky.git

2. Build using gradle wrapper

gradlew build

3. Setup database

Create mysql db and pass connection params as environmental variables as below.

4. Run server

set SERVER_DB_ADDRESS=localhost
set SERVER_DB_USER=root
set SERVER_DB_PASSWORD=password
set SERVER_DB_PORT=3306
set SERVER_DB_NAME=piskvorky_db
java -jar server/build/libs/piskvorky-server.jar

Server will listen at http://localhost:9090, admin is located at http://localhost:9090/admin

5. Start client

Copy content of web/distributions to some web server as nginx (see nginx configuration) or run kotlin-browser gradle task as browserProductionRun

6. Play

Create new account or use predefined admin account:

email: [email protected]
pass: test123

One-Command Build&Deploy

You can use prepared files run.bat/run.sh to build project using gradle wrapper and deploy to docker (Docker must be installed.) with this commands:

gradlew build 
docker-compose build
docker-compose up

Server will be listening at http://localhost:9090 client app will be accessible at http://localhost:80.

Project description

Project is using gradle and is split into these modules:

  • domain - contains domain objects and other shared code between server and client(s) modules
  • server - http server using Ktor
  • web - web client app in kotlin/js and ReactJS wrapper

Screenshots

Game

Lobby

Login page

Admin

Notes

Repository used Alpha features such as Kotlin Multiplatform and some problems with that may occur.

There is list of known issues:

KIV/PIA

This repository is semestral work of KIV/PIA.

Please see this doc.

About

TicTacToe multiplayer game using Kotlin Multiplatform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published