Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ctnicholas/wordle-wars

Multiplayer Wordle clone built with Vue.js & Liveblocks.
https://github.com/ctnicholas/wordle-wars

collaboration liveblocks vite vitejs vue vuejs wordle wordle-game

Last synced: about 2 months ago
JSON representation

Multiplayer Wordle clone built with Vue.js & Liveblocks.

Awesome Lists containing this project

README

        

# [Wordle Wars](https://wordlewars.ctnicholas.dev)

This repo shows how to build a multiplayer Wordle clone with [Liveblocks](https://liveblocks.io), [Vue](https://vuejs.org/), and [Vite](https://vitejs.dev/).

![Wordle wars screenshot](https://wordlewars.ctnicholas.dev/screenshot.png)

## [Try it out](https://wordlewars.ctnicholas.dev)

It's forked from [Vue Wordle](https://github.com/yyx990803/vue-wordle) created by Evan You (@yyx990803), with some multiplayer and extra styling added.
You can only see your opponent's letters after you've got the word of the day. Scores are saved at the end of the war,
and a new Wordle becomes available at UTC±00:00 every day. It features a dark mode and a colourblind mode.

![Wordle wars screenshot](https://wordlewars.ctnicholas.dev/screenshot-visible.png)

This repository is open sourced for learning purposes only - the original creator(s) of Wordle own all applicable rights to the game itself.

## Getting started

### Run examples locally

- Install all dependencies with `npm install`

- Create an account on [liveblocks.io](https://liveblocks.io/dashboard)

- Copy your public key from the [administration](https://liveblocks.io/dashboard/apikeys)

- Create a file named `.env.local` and add your Liveblocks secret as environment variable `VITE_LIVEBLOCKS_PUBLIC_KEY=sk_test_yourkey`

### Run examples on CodeSandbox

- Open this repository on CodeSandbox with this [link](https://codesandbox.io/s/wordle-wars-with-liveblocks-and-vite-0hhdi)

- Create an account on [liveblocks.io](https://liveblocks.io/dashboard)

- Copy your public key from the [administration](https://liveblocks.io/dashboard/apikeys)

- Create [secret](https://codesandbox.io/docs/secrets) named `VITE_LIVEBLOCKS_PUBLIC_KEY` with the secret key you just copied. You need to create an account on CodeSandbox to add an environment variable.

- Refresh your browser and you should be good to go!

## More with Liveblocks
[![Adding live cursors to Next.js](https://www.ctnicholas.dev/images/custom-thumbnails/live-cursors-with-liveblocks.png)](https://www.ctnicholas.dev/articles/live-cursors-with-liveblocks)
[![Build a live piano](https://livepiano.ctnicholas.dev/screenshot.png)](https://livepiano.ctnicholas.dev)
[![Build a live basket](https://livebasket.ctnicholas.dev/screenshot.png)](https://livebasket.ctnicholas.dev)