Skip to content

cbott/factories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

factories

Online multiplayer board game

For a much better game than this, check out Fantastic Factories

Factories Game Screenshot

Running the game

The most common commands are contained in the project justfile. just build and just run should allow you to load the game at localhost:8080.

Development

This project utilizes Vue.js for frontend rendering https://vuejs.org/guide/quick-start

Run game server from backend/ with

npm start [savefile.json]

Example:

NODE_ENV=production PORT=3000 npm start saves/my_game.json

Serve UI from frontend/ with

npm run dev

Build dist folder from frontend/ with

npm run build

Environment Variable Configuration Default
IP The IP address of the server (dev only) localhost
PORT Port for backend server 3000
NODE_ENV Set to 'production' to serve prebuilt frontend undefined

Remaining Work

Unscoped (possible future work)

  • Add an "Undo" button
  • Work on "security" type features such as ensuring that players cannot request actions on behalf of others
  • Keep track of player statistics throughout the game and present these (such as in a graph) at the end of the game
  • Add a "help" button that pulls up the rulebook
  • Change dice to have dots rather than numbers
  • When activating cards, the frontend should indicate which dice are valid to select (gray out invalid choices)
  • Add a server-side logging framework

About

Online Multiplayer Engine Building Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors