Command-line game made for the Jam for All BASIC Dialects (#7).
Developed using FreeBASIC and C.
A random word will appear, you must write at least one antonym. Try to keep your streak!
- FreeBASIC
- C
- cJSON
- Python for dataset formatting (Jupyter Notebook)
- Antonyms dataset
- Aseprite
- Image to ASCII
- Download the game from itch.io.
- Double-click or run the game from the command line or PowerShell.
./contrast_wordsThe word is: ANALYSIS
----------------------
Tries left: 3
Write an antonym: synthesis- Windows x64
- Windows 10, worked on (2/2) computers.
- Windows 11, worked on (1/2) computers.
- Windows XP (32-bit) - not supported.
Works on both cmd and PowerShell.
Some Windows 11 systems may display corrupted text such as "Choose an option: STREAK===ds!" or have issues printing ASCII images. I'm investigating it.
When compiling, you will need the cJSON files (see Development and resources). Also, the project structure is a bit rough, so every time you compile the C code, you will need to move any .a file into the Basic folder. The same applies to the resulting .exe and ASCII files.
C compilation:
# Move to C directory
cd src/c
# Create .o file
gcc -c antonyms_utils.c -o antonyms_utils.o
gcc -c ../../libs/cJSON.c -o ../../libs/cJSON.o
# Create .a file
ar r libantonyms_utils.a antonyms_utils.o ../../libs/cJSON.oBasic compilation:
# Move to Basic directory
cd src/basic
# Create .exe
fbc64 contrast_words.bas