shahrayar123 / python-projects Goto Github PK
View Code? Open in Web Editor NEWBasic Python projects, good first issue
Basic Python projects, good first issue
Encrypt and Decrypt messages between server and client using the private key plus something else to make it more secure.
Beginner is misspelled in this section of read me "A Hub of Python Projects for Begineers"
I think it would be a good idea to tell the user if the correct answer is higher or lower than their answer
I notice you didnt have a read me for your paper rock scissor game you could edit.
Sure, here's a README for your Rock Paper Scissors game by marsian83:
This is a simple Python implementation of the classic Rock Paper Scissors game created by marsian83.
To play the game, follow these steps:
You can exit the game at any time by pressing Ctrl + . (Ctrl and period key).
If you encounter any custom error messages during the game, please report them to the developer (marsian83) for troubleshooting.
Enjoy playing Rock Paper Scissors! Have fun! ๐ฎ
I think it would be helpful to create a separate contributing.md file to separate the instructions on how to contribute to this repository.
It would help keep the repository organized and you can go into more detail on how to contribute to the repository.
Hey, I was just browsing through some of the files and noticed some of the files like "dice-simulator" and "faceRecognition" and the such, didn't have a readme.py as either instructions or how to use code. I would like to help and make those readme files for all those codes missing (appropriate licenses, if necessary).
The code provides a Python implementation of a simple text-based Tic Tac Toe game. The game is played between a human player ('X') and a computer opponent ('O'). Here's a breakdown of how the code works:
The board is represented as a list with 10 elements (index 0 is not used). It's initialized with empty spaces (' ') to represent the Tic Tac Toe grid.
There are several functions defined, let us understand each of them in detail:
insertLetter(letter, pos) : Inserts the given letter ('X' or 'O') at the specified position pos on the board.
spaceIsFree(pos) : Checks if the space at position pos on the board is free (contains an empty space).
printBoard(board) : Prints the current state of the board in a visually appealing format.
isBoardFull(board) : Checks if the board is full (no empty spaces left).
isWinner(board, l) : Checks if a player with letter l has won the game by examining all possible win conditions.
userMove( ) : Allows the human player to make a move by inputting a position (1-9) where they want to place their 'X'.
compMove( ) : Implements the computer opponent's logic for making a move. It tries to win, block the player from winning, take corners, take the center if available, and finally take edges.
selectRandom(list_) : Helper function to randomly select an item from a list.
main( ) : The main game loop where the game is played. It alternates between the player and computer moves until there's a winner or a tie.
The game is played in a loop that asks the user if they want to play again after each game. If the user enters 'Y' (case-insensitive), a new game starts; otherwise, the loop exits, and the program ends.
Overall, the code provides a simple implementation of Tic Tac Toe that allows a user to play against a computer opponent. It uses a basic set of rules for the computer's moves and checks for a win or a tie in each game.
Happy Gaming!
Describe more about the project, if the project is about building a calculator using tkinter then assign it to me, I have built some calculators using tkinter
Originally posted by @Lokesh396 in #50 (comment)
Creating a Password Generator with Python random module
I have played Tic-Tac-Toe Game and found a following error.
Could you assign this to me ?
$ python3 TicTacToe.py
Do you want to play a game (Y/N): Y
-----------------------------------------
Welcome to the tic tac toe game
| |
| |
| |
-----------
| |
| |
| |
-----------
| |
| |
| |
...
Enter a position between 1 to 9: 4
| |
X | O | X
| |
-----------
| |
X | X | O
| |
-----------
| |
O | X | O
| |
Traceback (most recent call last):
File "TicTacToe.py", line 136, in <module>
main()
File "TicTacToe.py", line 119, in main
insertLetter("O", move)
File "TicTacToe.py", line 4, in insertLetter
board[pos] = letter
TypeError: list indices must be integers or slices, not NoneType
The hangman game has no readme file. I want to create one.
please assign me the same
Creating an alarm clock with python tkinter and other python libraries.
Just realised that TicTacToe doesn't have a ReadMe.
I believe many of the projects can be improved by refactoring the code. Apart from refactoring, developers should try to push the limits of each project. This helps to train everybody to be a better developer. Thank you!
A car racing game which have basic control features , scores feature with many hurdles and also made up from pure python .
game development libraries of python can be used for this project.
Rock Paper Scissors Game/main.py needs commenting
It says "sorry, you loose". The correct spelling is "lose" for a defeat in a game. Most people get this confused. I will request to solve the issue and will do a PR, my first contribution to open source.
Simple Calculator beginner project
Creating a Riddle Generator with Python random module
Hello,
I was wondering what the license of this repository is, as there doesn't seem to be a LICENSE file? Adding one would make the rules regarding how things can be used much clearer, and could also help with additional contributions :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.