Coder Social home page Coder Social logo

python-minigames's Introduction

python-minigames

Mini-games created as part of the Coursera course "An Introduction to Interactive Programming in Python" provided by Rice University, and later converted and modified to work outside of CodeSkulptor.org as well.

Tested with Python 2.7!

How to run

git clone https://github.com/anthonymonori/python-minigames.git
cd python-minigames
pip install -U -r requirements.txt
python check.py
python <game-name>.py

Games

Blackjack

The game requires no Introduction to any of us. Simply 'Hit' or 'Stand' or start a new round by clicking on the 'Deal' button. You bust if you go over 21 and A(ce) can be either 1 or 11. King, Queen and Jack are valued at 10. All other cards represent their own value.

Blackjack screenshot

Rock, Paper, Scissors, Lizard, Spock

This game is not compatible with CodeSkulptor.org

A modified version of the well-known 'Rock, Paper, Scissors' game with the addition of two extra choices: Lizard and Spock (yes, from Star Trek).

In short:

Scissor > Paper > Rock > Lizard > Spock > Scissor > Lizard > Paper > Spock > Rock > Scissors

In a bit longer form:

Scissors cuts Paper covers Rock crushes Lizard poisons Spock smashes Scissors decapitates Lizard eats Paper disproves Spock vaporizes Rock crushed Scissors.

RPSLS screenshot

Stopwatch

Not much to explain: just a simple stopwatch.

Stopwatch screenshot

Guess the number

A simple game where you have to guess the number between 1-100 or 1-1000 out of 7 tries. Once you try an guess, it will tell you if either you have to select a higher or a lower number, or that you got it right!

Guess the number screenshot

Asteroids

A python adaptation of the well-known Asteroids game from Atari. Use the left-right keys to change the angle of the rocket and press the back-forward to throttle.

Asteroid screenshot

Memory

A simple and well-known memory game where you have to guess the pair of cards by always folding up 2 of them. Each two-card fold counts as a move and you have to unfold them all by the least number of moves to win.

Memory screenshot

Pong

Another well known Atari game adaptation in Python. To move the paddles, use the W-S keys for Player 1 and the arrow keys (up-down) for Player 2. The gameplay never ends, but there's an option to Restart the score.

Pong screenshot

Problems?

I would prefer if you would open an issue under the Issues tab here on GitHub!

License

Freely provided under the MIT License.

python-minigames's People

Contributors

anthonymonori avatar

Watchers

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