/Hoive

The boardgame Hive, written in Rust

Primary LanguageRustMIT LicenseMIT

Hoive

The boardgame Hive, written in Rust.

Choose one of the following directories and do cargo run:

  • client: play game locally (couch co-op), or on a websocket server.
  • server: host a websocket server.

The hoive directory contains the game logic (dive in at pmoore.rs).

snapshot of the app

Code examples

If you're a developer, this repo contains examples of:

  • running a multiplayer game on a websocket server;
  • interacting with an sqlite database of game states;
  • using hexagonal coordinate systems (cubic, doubleheight, spiral) and translating between them, and;
  • morphological operations on hexagonal grids.

My to do list

  • Check and list dependencies in readme (e.g. lib sqlite)
  • Play test to spot bugs in base game

Lower priority

  • Option to select an empty game to join based on its id so can play with friends on server
  • Sqlite connections are done with pool, but is using appdata secure? Can pool be created somewhere else in the backend and grabbed by wsgamesessions?

Useful references