Code Monkey home page Code Monkey logo

python-projects's Introduction

Python Projects python

A Hub of Python Projects for Beginners.

Description

Welcome aboard fellow developer, this repository is intended for beginners who can use it for project building, open source contribution and get the most from it. If you are new to open source then do consider this repository to start with.

There are various projects under this repository which will be helpful for you get familiar with Python programming.

Projects

This repository has the following Projects.

Basic Projects along with Miscellaneous Games like-

OpenCV projects.

Other projects (not yet validated).

Contribution

Contributions are always welcome!

Instructions

  1. Fork this repository

  2. Clone your forked repository

  3. Add your scripts along with description

  4. Commit and push

  5. Create a pull request

  6. Star this repository

  7. Wait for pull request to merge

Celebrate your first step into the open source world and contribute more.

See GitHub Contribution Documentation for more reference.

python-projects's People

Contributors

aksh2002 avatar arunkarthicknm avatar bazargandev avatar code-xed avatar djharshit avatar eduardojtr avatar filza2112 avatar harshbaid-13 avatar harshi1122 avatar hasabnistejas avatar iamzaidsoomro avatar ifribeiro avatar imumer68 avatar kasyap1234 avatar krunalkharat02 avatar marsian83 avatar muhahahmad68 avatar p4sh4bsc avatar redeagle17 avatar rohit-554 avatar rohitsgh avatar saurav017 avatar scaratek avatar shahrayar123 avatar sinantokmak avatar sj0605-datasci avatar susmita-dey avatar ternion-1121 avatar thestrangerdoctor avatar vxcvxcvxc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-projects's Issues

Adding LICENSE

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 :)

Code refactoring

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!

Read me for paper rock scissor game

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:

Rock Paper Scissors by marsian83

This is a simple Python implementation of the classic Rock Paper Scissors game created by marsian83.

Getting Started

To play the game, follow these steps:

  1. Run the Python script.
  2. Press Enter to begin the game.
  3. Decide your move by entering "R" for Rock, "S" for Scissors, or "P" for Paper.
  4. The CPU will randomly select its move.
  5. The winner of the round will be announced.
  6. The session score will be displayed.
  7. Press Enter to continue to the next round.

Exiting the Game

You can exit the game at any time by pressing Ctrl + . (Ctrl and period key).

Rules

  • Rock beats Scissors.
  • Scissors beats Paper.
  • Paper beats Rock.

Custom Error Messages

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! ๐ŸŽฎ

Minor spelling issue in TicTacToe game

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.

README. for Tic-Tac-Toe Game

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!

readme files needed

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).

Typo in read me

Beginner is misspelled in this section of read me "A Hub of Python Projects for Begineers"

hangman readme

The hangman game has no readme file. I want to create one.
please assign me the same

A car racing game with python

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.

Error of Tic-Tac-Toe Game

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

Riddle

Creating a Riddle Generator with Python random module

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.