Skip to content
Extraits de code Groupes Projets
Valider 3d657ef9 rédigé par wobot1340's avatar wobot1340
Parcourir les fichiers

Report Belami

parent fe968ec2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Open Source Contribution Project
Author: Belami Nizeyimana
NOMA: 26041600
Year: 2021
Selected project: command-line-chess
# command-line-chess
For this project I knew I wanted to contribute to an open source project related to chess game but which one ? After having searched for a long time and compared a lot of projects between them my I finally chose to contribute to **command-line-chess**. It is a python program to play chess against an AI in the terminal, it also allows us to play against a second player.
![Chess game](https://camo.githubusercontent.com/476a7673cc67d54216a18525b940a05b1df32c52da4c0d84572ec0b3a0e3b462/687474703a2f2f692e696d6775722e636f6d2f417358686876432e706e67)
# Random move bug
Before I started my contribution, I had already spotted a bug. Indeed, the game offers to the player the possibility to make a random move if he can't decide. He just had to enter the "r" key on the console when it's his turn to play but it didn't work. Then, my first contribution was to fix the bug.
# Chess pieces
The first contribution I made was to give to the different pieces of the chess game a illustration
Before, the pieces were only represented by letters, 'p' for pawns, 'K' for knights, 'R' for rooks, 'B' for bishops, 'K' for kings and 'Q' for queens. So I decided to illustrate all these pieces with their respective images.
"R" -> '♜', "N" -> '♞', "B" -> '♝', "K" -> '♚', "Q" -> '♛', "P" -> '♟',
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter