Giter Club home page Giter Club logo

chengyu-wordle's Introduction

Chengyu Wordle

Wordle, for Chinese idioms - 成语 (chéngyǔ)

Guess the idiom in 6 tries.

This is my attempt at recreating Wordle, made by Josh Wardle, from scratch.

Screenshot

Story

I play Wordle sometimes and thought that it's pretty cool. Personally I don't find the Wordle braggings useful. They kind of pollute the social media timelines (Facebook, Twitter) but at least they're better than ads 🔥🤷‍♂️.

Then, I came across few "forks" of Wordle:

I'm like, "Hey, that's pretty cool, but maybe I could try something else?".

One day, I tweeted:

Wordle, but for Chinese idioms.

#idea

👉👉 Continue reading: Chengyu Wordle Is Not a Love Story 👈👈

Media coverage

Technicalities

Tech

This game is built with these wonderful technologies:

Commands:

  • npm i - install dependencies
  • npm run dev - start a development server

Notes:

  • "Unique" IDs are generated for every idiom. They are not 100% unique and are generated with shorthash2. I've tested using this and it's definitely possible to get the same hash for different idioms, if it's used to generate hashes for ALL idioms. Now it's only used for high-frequency idioms (smaller list).
  • Generated "keys" for the keyboard are not guaranteed to be persistent for every idiom. They are dynamically generated based on the list of idioms. So if the list of idioms or the order of the idioms changes, the keys will change. This will affect the shared results with emojis (🟩🟧⬜).
  • It's possible to fork this and change all idioms.

Data

⚠️ If you don't want to be spoiled, avoid reading the data marked with 🚨SPOILERS🚨.

Raw data stored in data/.

Game data stored in game-data/ are processed by running npm run data, which produces two files:

  • all-idioms.txt - list of all idioms, one per line.
  • 🚨SPOILERS🚨 game-idioms.csv - list of idioms to be used in the game, with assigned "unique" id. This list is mainly from THUOCL's high-frequency idioms.

Localization

  • English: ./i18n/en.json
  • 中文: ./i18n/zh-CN.json

As of now, 中文 is very roughly translated from English via Google Translate, which may not be great. Help is needed for translations!

Other similar attempts

🟩🟨🟩🟨🟩🟨🟩🟨🟩🟨🟩🟨🟩

A lot more Wordle clones here

🟩🟨🟩🟨🟩🟨🟩🟨🟩🟨🟩🟨🟩

Copyright and license

  • Wordle ©️ The New York Times Company
  • Everything else: MIT license

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.