Skip to content

Voronoi Game for optional Computational Geometry class @ ESCOM 2021

License

Notifications You must be signed in to change notification settings

JoelHernandez343/voronoi-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conquer the world

Description

screenshot01

This is a two-player online game that consists in conquer territories from your enemy and defend yours.

Each player can add points of conquest on the main zone and each one will produce Voronoi regions.

In order to add points of conquest, the player will have different types of buildings to collocate, all of them with different protection ratios where the enemy won’t be able to build sites of conquest.

The winner will be the player that conquer most of the territory.

Used technologies

  • React Js
  • Socket.IO
  • Express JS

Usage

First, install all dependencies for client and server

cd server
npm i
cd ../client
npm i

Next, build client using npm:

// For Node v17+
npm run build:v17
// For previous Node versions
npm run build

Next, run server:

cd ../server
npm run start

Open your browser on localhost:3000 or in your LAN your server's IP and the port 3000

Captures

Creating match: screenshot02 screenshot03

Player joining: screenshot04

Match recently created: screenshot05 screenshot06

Match finished: screenshot07

About

Voronoi Game for optional Computational Geometry class @ ESCOM 2021

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages