Giter Club home page Giter Club logo

python_games's Introduction

Python Games with Pygame and Random Modules

This is a collection of games created using Python and the Pygame library. The games are:

  • Dice Rolling Game
  • KBC Quiz Game
  • Tic Tac Toe
  • Snake Game
  • Rock Paper Scissor

Installation

  1. Clone this repository to your local machine.
  2. Install the required dependencies using pip install -r requirements.txt
  3. Run any of the Python files to play the corresponding game.

Dice Rolling Game

The Dice Rolling Game is a simple game where the player rolls two dice and tries to get a higher total than the computer. The game uses the random module to simulate the dice rolls.

KBC Quiz Game

The KBC Quiz Game is a quiz game based on the popular Indian TV show "Kaun Banega Crorepati" (Who Wants to Be a Millionaire). The game asks the player multiple choice questions and gives them four options to choose from. The game uses the random module to select the questions from a list of pre-defined questions.

Tic Tac Toe

The Tic Tac Toe game is a classic game where two players take turns placing X's and O's on a 3x3 grid. The first player to get three in a row wins the game. The game uses the Pygame library to draw the game board and handle player input.

Snake Game

The Snake Game is a classic game where the player controls a snake that grows longer as it eats food. The goal of the game is to eat as much food as possible without crashing into the walls or the snake's own body. The game uses the Pygame library to draw the game board and handle player input.

Rock Paper Scissor

The Rock Paper Scissor game is a classic game where two players choose between rock, paper, and scissors. Rock beats scissors, paper beats rock, and scissors beats paper. The game uses the random module to randomly select the computer's choice.

Contributing

If you find a bug or would like to suggest a new feature, please open an issue or submit a pull request on GitHub. Contributions are always welcome!

python_games's People

Contributors

alok-2002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.