The famous solitaire game using python libraries for graphical environment
The project is an equivalent realization of the well-known game of Klondlike Solitaire using cross-platform set of Python modules for computer graphics and sound libraries. The goal is to turn the entire deck into stacks and if this is achieved, the Solitaire game is won. The implementation is based on 3 main axes:
- Menu Scene
- Other scenes (Win/Lose/Τransitional)
- Game/Play environment
- Graphical design of components
- Introductory/final scenes
- Multimedia effects
- Hint buttons
- Install python1 environment. The instalation is easy either on Windows or Linux
- Install pygame2 modules
- Install Python IDE
- This implementation is made in pyCharm
- https://www.python.org/downloads/
- Link for the Windows installer python-XXX.msi file where XXX is the version you need to install.
- Update the PATH variable
- Update repositories lists and supporting softwares
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
- Install main package
$ sudo apt install pythonXXX
where XXX version installed1
- Verify install completion
$ python --version
- On any windows shell
python --version
pip install pygame
- Check the PyGame is working
import pygame
- On terminal, first make sure you are using latest version of python3 with
$ python3 –version
,
then
$ sudo apt-get install python3-pygame
- Check PyGame is working with python
python 3
pygame 1.9.6
- Open the terminal and go to home directory
cd ~
- Navigate the directory of the project
- Run
Solitaire.py
- Insert folder in PyCharm workshop
- File->Settings->Project->Project Interpreter
- Tap + and search PyGame
- Install packages
- Run .py
- This project was created for the requirements of the lesson Autonomous Agents
- The implementation was influenced by Raspigame for creating basic games.