Code Monkey home page Code Monkey logo

feihualing's Introduction

玩法帮助

运行环境

python3.6
需要安装 itchat https://github.com/littlecodersh/itchat  ,wxpy https://github.com/youfou/wxpy  
直接使用pip install 安装就行,先安itchat

程序运行介绍

首先打开FHL.py源代码,没有编译器的话可以用txt文件打开 如果你想在某个群玩那么只用把 ("飞花令")中的飞花令改成群名即可,如果要跟某个人玩,那么飞花令需要改成对方微信号,并且groups()改成friends()
其次运行 FHL.py 会让你扫描微信二维码(不影响客户端的状态,但是其他网页版均会退出,以及自己手机退了微信,这个同样也会退出),最好使用小号登陆。
如果用你自己号登陆,那么你啥也干不了,程序不会识别你说的话

玩法介绍

让某个人说"开始飞花令" ,会提示无限有限,无限就是只要诗词带某个字就行,有限就是一共七次,字从头到尾顺序出现七次(可以百度),由那个人说第一句诗。
其他人如果想加入 可以说 加入,如果想退出,可以说退出 如果不加入,说的话不会识别 如果说过了,说错了(没有带那个字),不是诗句,都会有提示,比如嘿嘿嘿,大笨蛋,说过了。
如果不会了可以说提示,他会自动回复一个符合要求的,但是下一句还是得你来说
如果想终止当前游戏,可以说 终止 或者直接 开始飞花令 再开一个

一些问题

data.txt是一个诗词库,有个别句子有顿号等出现次数忽略不计的符号,所以可能一起出现,现在一共700万行,程序中加了其他人说的是否是诗句的判断,
说错的话会回复,嘿嘿嘿或者大笨蛋,不过诗词库肯定不全,尤其明清之后,可能会误判,但是大部分熟悉的都会有。如果想关闭判断,程序的24行return 0改成return 1(默认是0)

feihualing's People

Contributors

dybq avatar

Watchers

James Cloos 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.