Code Monkey home page Code Monkey logo

wordle-battle's Introduction

Wordle Battle

Battle up to 5 opponents to conquer the Wordle

View Acos Documentation


Getting Started

Requires Node v16+

Installation

npm install

Run Simulator, Client, and Server

npm start

Playing the game

  1. Open 2 tabs at http://localhost:3200/
  2. Enter a username on each tab and click 'Join'
  3. When ready, press "Start Game"

The game was designed to play in Fixed Resolution, 4:4 mode.

About Client

Game Client is built using ReactJS. It will run inside an iframe and communicate with the parent frame which is the Simulator's client.

All assets (images, svg, audio) should be packed into a single javascript file:

  • client.bundle.dev.js for development
  • client.bundle.js for production.

A browser-sync is included so that your changes are reflected immediately.

About Server

Game Server code is built using NodeJS code and bundled into a single server.bundle.js file for both developmet and production.

database.json is used to store large amounts of data in JSON format, and must be in the ./game-server/ folder

It is accessed via globals.database() in the server code. It is not shared with client.

About Simulator

Simulator runs a simple frontend that displays your client.bundle.js inside an iframe.

Simulator also runs a NodeJS express/socket.io server with a worker that uses vm2 to run your server.bundle.js code.

wordle-battle's People

Contributors

joetex avatar acosg avatar

Watchers

 avatar

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.