Git Product home page Git Product logo

dark-forest's Introduction

Hathora Deploy Coverage Status

Dark Forest

Architecture

All game logic is contained in here. Game state is stored in a state object, with a reducer processing every command, which is sent to it as a plain string. Every move is processed deterministically, so it can be done simultaneously on both client and server.

This serves mostly as a bridge between Game logic and the Hathora server, and handles users joining the game, and throwing out invalid moves which the Game logic processes and returns an undefined state.

Built in plain React, a lot of the bridging to the server is handled in context/GameContext.tsx. The main game's view is in pages/Game.tsx, and is graphics are just a plain inline SVG.

dark-forest's People

Contributors

philihp avatar renovate[bot] avatar

Watchers

 avatar  avatar

dark-forest's Issues

Independency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency @types/jest to v29.5.10
  • chore(deps): update dependency @types/styled-components to v5.1.32
  • chore(deps): update dependency vite to v5.0.2
  • chore(deps): update react monorepo (@types/react, @types/react-dom)
  • chore(deps): update dependency typescript to v5.3.2
  • chore(deps): update typescript-eslint monorepo to v6.12.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency react-router-dom to v6.20.0

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • node 20
github-actions
.github/workflows/build.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/checkout v3
  • actions/setup-node v3
.github/workflows/deploy.yml
  • actions/checkout v3
  • SpicyPizza/create-envfile v2.0
.github/workflows/game.yml
  • actions/checkout v3
  • actions/setup-node v3
nodenv
.node-version
  • node 18.18.2
npm
client/web/package.json
  • @react-oauth/google 0.12.1
  • dark-forest-game 0.8.2
  • fast-shuffle 6.0.1
  • pcg 1.0.0
  • ramda 0.29.1
  • react 18.2.0
  • react-dom 18.2.0
  • react-router-dom 6.19.0
  • react-toastify 9.1.3
  • sort-unwind 2.1.2
  • @philihp/eslint-config 6.1.0
  • @philihp/prettier-config 1.0.0
  • @tsconfig/vite-react 2.0.1
  • @types/jest 29.5.8
  • @types/ramda 0.29.9
  • @types/react 18.2.37
  • @types/react-dom 18.2.15
  • @types/react-router-dom 5.3.3
  • @types/styled-components 5.1.30
  • @typescript-eslint/eslint-plugin 6.11.0
  • @typescript-eslint/parser 6.11.0
  • @vitejs/plugin-react 4.2.0
  • autoprefixer 10.4.16
  • eslint 8.54.0
  • eslint-import-resolver-typescript 3.6.1
  • eslint-plugin-import 2.29.0
  • eslint-plugin-prettier 5.0.1
  • husky 8.0.3
  • jest 29.7.0
  • lint-staged 15.1.0
  • prettier 3.1.0
  • ts-jest 29.1.1
  • typescript 5.2.2
  • vite 5.0.0
game/package.json
  • fast-shuffle 6.0.1
  • fn-pcg 2.0.1
  • ramda 0.29.1
  • ts-pattern 5.0.5
  • @philihp/eslint-config 6.1.0
  • @philihp/prettier-config 1.0.0
  • @tsconfig/node16 16.1.1
  • @types/jest 29.5.8
  • @types/ramda 0.29.9
  • @typescript-eslint/eslint-plugin 6.11.0
  • @typescript-eslint/parser 6.11.0
  • eslint 8.54.0
  • eslint-import-resolver-typescript 3.6.1
  • eslint-plugin-import 2.29.0
  • eslint-plugin-jest ^27.2.3
  • eslint-plugin-prettier 5.0.1
  • husky 8.0.3
  • jest 29.7.0
  • lint-staged 15.1.0
  • prettier 3.1.0
  • ts-jest 29.1.1
  • typescript 5.2.2
server/package.json
  • dark-forest-game 0.8.2
  • ramda 0.29.1
  • @types/ramda 0.29.9
  • typescript 5.2.2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.