Skip to content

antonialoytorrens-archive/wordle-bg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

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