快速开始
已经支持的小游戏
兔子和獾(射击游戏)
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('bunnybadger')
仿八分音符的声控小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('voicecontrolpikachu')
拼图小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('puzzlepieces')
滑雪游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('ski')
经典坦克大战小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('tankwar')
飞扬的小鸟小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('flappybird')
仿谷歌浏览器小恐龙游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('trexrush')
塔防游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('towerdefense')
接金币小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('catchcoins')
飞机大战
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('aircraftwar')
俄罗斯方块
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('tetris')
推箱子
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('sokoban')
外星人入侵小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('alieninvasion')
吃豆人小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('pacman')
消消乐
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('gemgem')
24点小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('twentyfourpoint')
乒乓球小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('pingpong')
打砖块小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('breakoutclone')
炸弹人小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('bomberman')
走迷宫小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('maze')
打地鼠
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('whacamole')
五子棋小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('gobang')
2048小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('twozerofoureight')
贪吃蛇小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('greedysnake')
扫雷小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('minesweeper')
愤怒的小鸟
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('angrybirds')
记忆翻牌小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('flipcardbymemory')
魔塔小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('magictower')
热血足球小游戏
1.公众号文章链接
2.调用示例代码
from cpgames import cpgames
game_client = cpgames.CPGames()
game_client.execute('bloodfootball')
随机运行一个小游戏
代码实现如下:
import random
from cpgames import cpgames
game_client = cpgames.CPGames()
all_supports = game_client.getallsupported()
game_client.execute(random.choice(list(all_supports.values())))