The Alphabet Game is designed to help Latvian children expand their knowledge of the Latvian alphabet in a fun way! The game features images and buttons where the child must press a button corresponding to the letter represented by the image.
- Interactive Gameplay: Children are shown images, and they must select the correct letter from two options.
- Scoring System: It tracks how many times the child selects the correct button.
- Dynamic Image and Letter Selection: When the child selects the correct letter, the image and buttons are updated.
To run the game, you need Python and the following libraries:
tkinterPIL(Pillow)
You can install Pillow using pip:
pip install pillowTo run the game, execute the following command in your terminal:
python Alfabets.pyMake sure to have your images (e.g., arbuzs.png, apple.png, etc.) in the same directory as the script or update the image paths in the code accordingly.
- Lietcelv: The main class that creates the game window and handles the user interface.
- ButtonHandler: The class that manages the buttons and game logic, including the scoring system.
- Image Loading Function: A function that loads and displays images within the game.
The game uses images of various objects, such as fruits and animals, to help children learn the letters associated with the images. Below is a sample list of image files used in the game:
arbuzs.pngapple.pngbanans.pngcitrons.pngcuska.pngdinazaurs.png
Developed by yours truly - Jana Ozolniece - aka. Janchuks