An updated version of rygames, a collection of games written in Python
Project description
SlaterPythonGames
Python games by Ryan J. Slater GitHub
PyPi
This is an updated replacement for rygames
Installation
To install: pip install SlaterPythonGames
Games
Make sure to import SlaterPythonGames as s
Here are the games currently included in this module:
- 2048
- Coin Game
- Country Guessing Game
- Tic-Tac-Toe
- Warships
- Warships2
2048
This is a clone of the popular mobile game under the same name. This will run with a Graphical User Interface, and with a scalable window size. You can find the original version here.
Run with s.TwentyFortyEight()
Coin Game
This is just a quick little game some new programmers write within their first year. Two players take turns flipping a coin, choosing from a penny, nickel, dime, or quarter. The players flip their coin, and if it lands on heads, the player gains the amount the coin is worth. If the coin lands on tails, they lose that amount. Players race to reach $1.00 first.
Run with s.CoinGame()
Country Guessing Game
Name as many countries as you can!
NOTE: This game was written on July 28th, 2017. The world has changed since then, so some of these countries may not exist any more and there may be new ones. I kinda don't feel like updating this though, since only my brother is crazy enough to play it seriously.
Run with `s.CountryGuessingGame()``
Tic-Tac-Toe
If you don't know how to play this game, I'm wondering what you're doing here. Enter the number corresponding to the space you want to mark.
To play single-player: s.TicTacToe1Player()
To play two-player: s.TicTacToe2Player()
Warships
This is the game that won the high school competition at the Shawnee State 17.0 Art & Gaming Conference in 2017. It's a text-based clone of the Battleship board game, with one or two player options. If you play the two-player version, you'll have access to some slightly different options. Instructions are included in the game.
NOTE: Due to the use of colored text, this will not run on Windows 7.
Run with s.Warships()
Warships2
This is the successor to Warships. Updates include a GUI, account system, and an AI that learns your personal play style and adapts to play against you!
Run with s.Warships2()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file SlaterPythonGames-1.7.tar.gz
.
File metadata
- Download URL: SlaterPythonGames-1.7.tar.gz
- Upload date:
- Size: 276.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5666f7ddeb89cc6ee7537209fb4e07af2380b0f9aee5a6749d890447506f7433 |
|
MD5 | 60621e5558be1c2382268459e8c32a6d |
|
BLAKE2b-256 | 50a5ad6fcbe38e23b08788fdb78beeb6b3db3b20d2d8839774923738e803932a |
File details
Details for the file SlaterPythonGames-1.7-py3-none-any.whl
.
File metadata
- Download URL: SlaterPythonGames-1.7-py3-none-any.whl
- Upload date:
- Size: 280.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f101f429e1978d7747c9fdb9285e6b404142a5f927fa4f0f0fcc2d5603902ad |
|
MD5 | 924ef167859f4b374f8999c62fd5c84b |
|
BLAKE2b-256 | 15b073be3305b3d769fd2795e7495748aa8ad9d0c3900886e376c81e9eaf4a34 |