ggerganov / wordle-bg

πŸ‡§πŸ‡¬ Wordle clone in Bulgarian

Home Page:https://wordle-bg.ggerganov.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wordle-bg

A Wordle clone in Bulgarian

Play online: https://wordle-bg.ggerganov.com

Description

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.

Build as native app

# 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

Build as web app

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/

Thanks

About

πŸ‡§πŸ‡¬ Wordle clone in Bulgarian

https://wordle-bg.ggerganov.com

License:MIT License


Languages

Language:C++ 50.4%Language:C 34.7%Language:CMake 6.4%Language:HTML 6.1%Language:JavaScript 1.6%Language:CSS 0.8%