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
Among AIs is a (prototype of) PC Game we developed as part of the Smart Applications course @ University of Pisa.

Among AIs is a PC Game we developed as part of the Smart Applications course @ Department of Computer Science of University of Pisa, under t

Gabriele Pisciotta 5 Dec 05, 2021
Tictactoe py tkinter canvas - Tic Tac Toe written in Python 3 with tkinter mainly using canvas

Python 3 Tic Tac Toe with tkinter This is a tkinter version of my Tic Tac Toe ga

Bojan Adzic 1 Jan 09, 2022
Pratice Project - Tic tac toe game

Hello! This tic-tac-toe game project and its notes are result from a course pratice milestone. The project itself is written in Python using the Jupyt

Rafael Nascimento 1 Jan 07, 2022
Open source translation for the Tsukihime Remake game

Tsukihime-Translation Open source translation for the Tsukihime Remake game prepared by Clovermoon and Tsukihimates. Copyright Disclaimer under Sectio

118 Jan 01, 2023
Bingo game now in python play as much you want :) no need to give me credit it's open as fuck

Bingo-py-game A game coded with Python Introduction This is a Terminal-based game currently in its initial stage. I am working on adding more efficien

Frey 5 Aug 12, 2021
pyLodeRunner - Classic Lode Runner clone made in pyxel (Python)

pyLodeRunner Classic Lode Runner clone made in pyxel (Python) Controls arrow key : move the player X : dig right side Z : dig left side ESC : quit gam

2 Feb 12, 2022
An environment to run atari-like games in VGDL.

vgdl An environment to run atari-like games in VGDL. Requirements python = 3.6 Installation pip install -r requirements.txt Usage # Create an enviro

Sergio Arnaud Gomez 1 Dec 24, 2021
This is a classic guess coin game (Heads or Tails) implemented by the Chialisp.

This is a classic guess coin game (Heads or Tails) implemented by the Chialisp. It is an absolutely fair P2P game based on the Chia blockchain. You can play with anyone in the world without custody.

Kronus91 14 Jul 02, 2022
用于 blivechat 的图形界面

blivechat GUI 用于 blivechat 的图形界面。 有朋友在搞 Vtuber,像 blivechat 类似的项目能通过自定义 CSS 的方式在 OBS 上添加一个非常好看的聊天栏。但是想要在桌面端看到弹幕的话得要再开一个浏览器页面,十分不方便。就想写一个背景透明的浮窗浏览器。 挺喜欢

Silence 11 Dec 29, 2022
MCTS (among other things) for 2048

2048 Created by Chad Palmer for CPSC 474, Fall 2021 Overview: This is an application which can play 2048 and simulate games of 2048 with a variety of

Chad Palmer 1 Dec 16, 2021
Turtle Road Crossing Game in Turtle(python module)

Turtle Road Crossing Game in Turtle(python module) In this project we have built a road crossin game in python with Object-Oriebted Programming. This

Jhenil Parihar 3 Jun 15, 2022
DouZero_For_HLDDZ_FullAuto: 将DouZero用于欢乐斗地主自动化

DouZero_For_HLDDZ_FullAuto: 将DouZero用于欢乐斗地主自动化 本项目基于DouZero 和 DouZero_For_Happy_DouDiZhu 环境配置请移步项目DouZero 模型默认为ADP,更换模型请修改main.py中的模型路径 运行main.py即可 在原

322 Dec 25, 2022
offline bot for game on chrome

Бот офлайн игры браузера CHROME В автоматическом режиме запускает браузер Chrome под ОС windows, так же автоматически определяет разрешения экрана, на

Andrej Marinchenko 19 Dec 17, 2022
Lucky Balls is gambling game where user try to guess 6 numbers from 1 to 48 that computer has picked.

LUCKY BALLS Lucky Balls is gambling game where user try to guess 6 numbers from 1 to 48 that computer has picked. INSTRUCTIONS User input his bet, tha

rile037 2 Dec 28, 2021
Ladder network is a deep learning algorithm that combines supervised and unsupervised learning

This repository contains source code for the experiments in a paper titled Semi-Supervised Learning with Ladder Networks by A Rasmus, H Valpola, M Hon

Curious AI 505 Nov 15, 2022
16-bit PvP platform minigame made for a final high-school project

16-bit PvP platform minigame made for a final high-school project

Flavien 1 Feb 10, 2022
🕹️ Jeu Azul en Python avec 4 IAs 🤖 implémentées, jouable de 1 à 4 joueurs

Projet jeu Azul 🕹️ Jeu Azul en Python avec 4 IAs 🤖 implémentées, jouable de 1 à 4 joueurs Par : Berachem MARKRIA et Tristan MARTINEZ Projet réalisé

Berachem Markria 2 Jun 07, 2022
Stock game is a python program that simulates real-life stock marketing, saving, and investments

Stock game is a python program that simulates real-life stock marketing, saving, and investments. Users get to trade and manage their portfolio and manage their 100,000 dollar portfolio.

Sai Praneth Raju K. 1 Jul 14, 2022
Dueling Platform for Competitive Programming. Learn through Games.

CP-Dueling Dueling Platform for Competitive Programming. Learn through Games. Setting Up Minimum Python version needed = 3.9.9 Install Virtualenv and

Bhavesh 3 Feb 07, 2022
Cheats for shooter games

Cheats Cheats for shooter games Download Trigger Bot trigger.exe // trigger.sha256 Download Certify Bot certify.exe // certify.sha256 Note: Check sha2

Emin Muhammadi 1 Nov 26, 2021