Games: Create interesting games by pure python.

Overview

license issue resolution open issues

Documents: https://github.com/CharlesPikachu/Games/tree/master/docs

Games

Create interesting games by pure python.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.

Statement

Most of the game materals(including music, fonts and pictures) in this repository are collected from the web, copyright belongs to the original author.
This repository is created just for learning python(Commercial prohibition).

Contents

ID Name of The Game Code Introduction
Game1 Bunnies and Badgers click click
Game2 Pikachu Go Go Go click click
Game3 Puzzle pieces click click
Game4 Skier click click
Game5 Tank War click click
Game6 FlappyBird click click
Game7 T-Rex Rush click click
Game8 Tower Defense click click
Game9 Catch coins click click
Game10 Aircraft war click click
Game11 Tetris click click
Game12 Sokoban click click
Game13 Alien Invasion click click
Game14 Pacman click click
Game15 GemGem click click
Game16 24 point click click
Game17 Pingpong click click
Game18 Breakout clone click click
Game19 Bomber Man click click
Game20 Maze click click
Game21 Whac-A-Mole click click
Game22 Gobang click click
Game23 2048 click click
Game24 Greedy Snake click click
Game25 Mine Sweeper click click
Game26 Angry Birds click click
Game27 Flip Card by Memory click click

Citation

If you use this project in your research, please cite this project.

@misc{games2020,
    author = {Zhenchao Jin},
    title = {Games: Create interesting games by pure python},
    year = {2020},
    publisher = {GitHub},
    journal = {GitHub repository},
    howpublished = {\url{https://github.com/CharlesPikachu/Games}},
}

Projects in Charles_pikachu

  • DecryptLogin: APIs for loginning some websites by using requests.
  • Musicdl: A lightweight music downloader written by pure python.
  • Videodl: A lightweight video downloader written by pure python.
  • Pytools: Some useful tools written by pure python.
  • PikachuWeChat: Play WeChat with itchat-uos.

More

WeChat Official Accounts

Charles_pikachu
img

Comments
  • hello, I want to contribute this game.

    hello, I want to contribute this game.

    Hello? I am first time in git-hub, so if I rude tell me please... Anyway... I interested in game, and python. I want to contribute this project. I can translate annotate to English,Korean. And We can exchange Idea... And I can add more contents to Readme.md. And I can also use Python.(I am studying now...very diligently)... so can I contribute this project? If you tell me what kind of help do you need, I will help you.

    opened by minkyoyeah 4
  • SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

    SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

    When I try to open the.py file this error occurs SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details Thanks!

    opened by SDRStuff 2
  • hello~ how about adding an English annotation files??

    hello~ how about adding an English annotation files??

    if english files are added, more people more learn~? I'm thinking about making an English file. Is it okay? and game17 bgm very nice... and interesting i will use in my boring class...

    opened by minkyoyeah 2
  • Game 2 pyaudio error

    Game 2 pyaudio error

    I got the following error on python3.6.8 running game 2: Traceback (most recent call last): File "Game2.py", line 75, in cocos.director.director.init(caption="Pikachu Go Go Go") File "C:\Users\mik\AppData\Local\Programs\Python\Python36\lib\site-packages\cocos\director.py", line 356, in init cocos.audio.initialize(audio_settings) File "C:\Users\mik\AppData\Local\Programs\Python\Python36\lib\site-packages\cocos\audio_init_.py", line 58, in initialize music.set_control('dummy') I asked around and someone said the audio needs to be initialized and gave the docs: http://python.cocos2d.org/doc/api/cocos.director.html#cocos.director.Director.init . I'm a beginner to cocos so I don't know how to fix this. Help please.

    opened by mikelty 1
  • Importing Levels

    Importing Levels

    Hi.. Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "c:/Users/arvin/Desktop/Pacman/game.py", line 181, in main(initialize()) File "c:/Users/arvin/Desktop/Pacman/game.py", line 164, in main
    pygame.mixer.music.load(BGMPATH) pygame.error: Failed loading libmpg123.dll: Attempt to access invalid address.

    opened by Arvind232 1
  • mixer module not available (ModuleNotFoundError: No module named 'pygame.mixer')

    mixer module not available (ModuleNotFoundError: No module named 'pygame.mixer')

    一直报错找不到mixer这个module,我用的是Mac,需要额外安装mixer吗 Hello from the pygame community. https://www.pygame.org/contribute.html /Users/yangzho2/Downloads/Games-master/Game12/Game12.py:283: RuntimeWarning: use mixer: No module named 'pygame.mixer' (ModuleNotFoundError: No module named 'pygame.mixer') pygame.mixer.init() Traceback (most recent call last): File "/Users/yangzho2/Downloads/Games-master/Game12/Game12.py", line 301, in main() File "/Users/yangzho2/Downloads/Games-master/Game12/Game12.py", line 283, in main pygame.mixer.init() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pygame/init.py", line 100, in getattr raise NotImplementedError(missing_msg) NotImplementedError: mixer module not available (ModuleNotFoundError: No module named 'pygame.mixer')

    opened by zy660622 1
  • 怎样改变射击速度?

    怎样改变射击速度?

    (original) if event.type == pygame.MOUSEBUTTONDOWN: my_bullet = myaircraft.shot() if my_bullet: my_bullets_group.add(my_bullet) (change) #if event.type == pygame.MOUSEBUTTONDOWN: my_bullet = myaircraft.shot() if my_bullet: my_bullets_group.add(my_bullet)

    我从鼠标的点击中删除了子弹,从而改变了我的目标。 我想加快我的拍摄速度,但是我该怎么办呢?

    I deleted the shot from the click of the mouse and changed it so that I could shoot while I was still. I want to speed up my shooting, but what code should I change?

    opened by minkyoyeah 1
  • a bug with game8

    a bug with game8

    After selling a tower,'money' changed from type int into type float. And the program runs much more slowly on my old laptop,due to the CPU. (Another plane game runs normally. )

    卖塔以后钱从整型变成浮点型了 程序在我这个老笔记本上跑的很慢,因为CPU的关系. (另一个自制的打飞机运行得就还可以)

    opened by ietar 1
  • Music credits

    Music credits

    Didn’t find the music’s credits anywhere… I had to google the lyrics ! lol Thanks much for your open-source repository, it’s very fun and educational to look around !

    opened by d0ob 0
  • 导包的相对路径一直报错,怎么解决呢

    导包的相对路径一直报错,怎么解决呢

    Traceback (most recent call last): File "D:/PythonWorkspace/games/Games/cpgames/core/games/bunnybadger/bunnybadger.py", line 16, in from ...utils import QuitGame ValueError: attempted relative import beyond top-level package

    opened by itkuanggong 1
  • [BUG]

    [BUG]

    Environment (使用环境)

    • Installation method (安装方式):
    • The version of cpgames (版本号):
    • Operating system (操作系统):
    • Python version (Python版本):

    Question description (问题描述)

    Screenshot (报错截图) image

    Advice (修复建议)

    opened by tangzirui 1
Owner
student
null
Datamining of 15 Days of (free) Games at the Epic Games Store (EGS).

EGS: 15 Days of Games This repository contains Python code to data-mine the 15 Days of (free) Games at the Epic Games Store (EGS). Requirements Instal

Wok 9 Dec 27, 2022
An all-inclusive Python framework for the Riot Games League of Legends API. We focus on making the data easy and fun to work with, while providing all the tools necessary to create a website or do data analysis.

Cassiopeia A Python adaptation of the Riot Games League of Legends API (https://developer.riotgames.com/). Cassiopeia is the sister library to Orianna

Meraki Analytics 473 Jan 7, 2023
A pure python implementation of a solver for the popular game wordle.

A pure python implementation of a solver for the popular game wordle.

null 1 Oct 6, 2022
A pure-Python Wordle and Absurdle solver

Pyrdle A pure-Python Wordle and Absurdle solver Find the originals here: Wordle Absurdle Basic solving: Wordle To solve today's Wordle, simply run: ./

null 3 Feb 9, 2022
pygame is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.

pygame is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.

pygame 5.6k Jan 1, 2023
Sukoku-solver Python About Sudoku is one of the most popular puzzle games of all time

Sukoku-solver Python About Sudoku is one of the most popular puzzle games of all time. As a logic puzzle, Sudoku is also an excellent brain game. Bein

Harshith VH 1 Nov 20, 2021
learn and have fun developing 2D retro games using python and pygame

Retro 2D Game Development Using Python + PyGame Skill up your programming skills with a walk down the memory lane. Learn how to create a retro 2D game

Marvin Trilles 1 Feb 23, 2022
Several implementations of classical games (ex: FlappyBird, Minesweeper etc.) using Python (pygame)

Mini Games with Pygame This projects implement several classic and popular games in Python, using python package -- pygame. Currently, 4 games are alr

null 1 Feb 14, 2022
Python Interactive Mini Games

Python Interactive Mini Games Mini projects from Coursera's An Introduction to I

Ashish Choudhary 1 Jan 16, 2022
Find live blooket games easy with python.

Blooket-pin-finder Find live blooket games easy with python. info when you start you will see what looks like error DON'T STOP those are just the thre

Crazedpotato 1 Mar 7, 2022
AI plays games with python

AI-plays-games- To use it, you first need to create an img file and save the pic

Murat Ali Avcu 7 Oct 16, 2022
Python game engine for 2D multiplayer online games.

LAN-Caster The goal of LAN-Caster is to provide an easy-to-use code base (game engine) for developing 2D multiplayer online games. LAN-Caster original

Douglas Bakewell 1 Feb 11, 2022
AI Games and its programming solution with Python.

Problem: Save the princess: Problem defination on Hackerrank: https://www.hackerrank.com/challenges/saveprincess About problem: Princess Peach is trap

Hasit Parmar 1 Feb 19, 2022
A comprehensive, feature-rich, open source, and portable, collection of Solitaire games.

PySol Fan Club edition This is an open source and portable (Windows, Linux and Mac OS X) collection of Card Solitaire/Patience games written in Python

Shlomi Fish 368 Dec 28, 2022
To solve games using AI, we will introduce the concept of a game tree followed by minimax algorithm.

To solve games using AI, we will introduce the concept of a game tree followed by minimax algorithm.

Vaibhaw 7 Oct 13, 2022
Automates cubemap generation for Source Engine games.

AutoCube Automates cubemap generation for Source Engine games during compile-time. Download: see the release page Installation Using with CompilePal A

null 5 Feb 18, 2022
Open source Board Games Like Tic Tac Toe, Connect 4, Ludo, Snakes and Ladder etc...

Board-Games What to do... Add Board games like Tic Tac Toe, Connect 4, Ludo, Snakes and Ladder etc... How to do... Fork the repo Clone the repo git cl

Bit By Bit 1 Oct 10, 2022
A converter for the .BMR / .RLE bitmap files used in some Neversoft PS1 games.

Requirements python3 pyqt5 - can be installed with pip install PyQt5 pypng - Included Usage Instructions This program can be running py main.py in the

null 4 Jul 30, 2022
Overview: copain, your friendly AI framework to learn and play games

Overview: copain, your friendly AI framework to learn and play games Interface fceux with python and run reinforcement learning. Compatibility Current

fcharras 1 Dec 16, 2021