A Wordle clone in Bulgarian
Play online: https://wordle-bg.ggerganov.com
This clone is written in C++ and ported to the Web with Emscripten. The bulk of the implementation is in the file src/main.cpp. The HTML/JS wrapper is in src/index-tmpl.html. The advantages of this programming stack is that you can run the game both as a native application and as a web-page. The main drawback is that you lose most of the HTML/JS/CSS goodies available when building a standard web application.
I've tried to keep the look and feel as close as possible to the original, although there are certain things that do not behave the same. For example, the smooth fade-in and fade-out of the window popups was too complicated to implement, so I opted out for a simpler approach.
The current dictionary contains 14051 words. The daily wordle is selected from a smaller, secret pool of words, containing mostly nouns and adjectives.
# install dependencies
sudo apt-get install libsdl2-dev
# build from source
git clone --recursive https://github.com/ggerganov/wordle-bg
cd wordle-bg
mkdir build && cd build
cmake ..
make -j
ln -sfn ../fonts/* ./
ln -sfn ../words/* ./
./bin/wordle
git clone --recursive https://github.com/ggerganov/wordle-bg
cd wordle-bg
mkdir build-em && cd build-em
emcmake cmake ..
make -j
cp ./bin/wordle-extra/* /var/www/html/
cp ./bin/* /var/www/html/
- @rgerganov for the idea
- @ibob for helping me find a dictionary with Bulgarian words
- @Vankata453 for adding the ability to play past puzzles (#10)
- Make sure to check out the original at: https://www.powerlanguage.co.uk/wordle/