kst179 / loveletter Goto Github PK
View Code? Open in Web Editor NEWTelegram bot game version of the card game LoveLetter
License: MIT License
Telegram bot game version of the card game LoveLetter
License: MIT License
То есть вместо трёх строчек "Стражница" писать "3 Стражницы".
В конце каждого хода дописывать количество карт, оставшихся в колоде
особенно когда игра уже началась
Был случай когда игра завершилась при наличии 3х игроков и не сброшенных 2х баронах (и еще дофига карт должны были лежать в колоде). Надо понять почему так происходит и убрать баг.
Надо чтобы везде все сходилось с русским языком: пол, род, множественное число и т.д. Это сложно но можно сделать...
Traceback (most recent call last):
File "bot.py", line 160, in
bot.polling(none_stop=True)
File "/opt/anaconda3/lib/python3.5/site-packages/pyTelegramBotAPI-2.3.1-py3.5.egg/telebot/init.py", line 222, in polling
File "/opt/anaconda3/lib/python3.5/site-packages/pyTelegramBotAPI-2.3.1-py3.5.egg/telebot/init.py", line 246, in __threaded_polling
File "/opt/anaconda3/lib/python3.5/site-packages/pyTelegramBotAPI-2.3.1-py3.5.egg/telebot/util.py", line 103, in raise_exceptions
File "/opt/anaconda3/lib/python3.5/site-packages/six.py", line 686, in reraise
raise value
File "/opt/anaconda3/lib/python3.5/site-packages/pyTelegramBotAPI-2.3.1-py3.5.egg/telebot/util.py", line 54, in run
File "bot.py", line 145, in text_message
game.select_victim(message.text)
File "/home/kst179/Games/LoveLetter/gameclasses.py", line 144, in select_victim
if self.dealer.new_card.need_guess:
AttributeError: 'NoneType' object has no attribute 'need_guess'
Если игроков слишком много, то предложить 2 колоды, если слишком много для 2х колод, предложить выкинуть когото из группы...
Иногда, непонятно почему имена игроков меняются местами.
Возможно, стоит все-таки показывать карту того, кто выбил тебя бароном, чтобы все было честно.
Для компактности, возможно, стоит выводить их в виде:
Стражница (3)
Служанка (1)
Принц (2)
Надо после каждого хода прятать долбанный markup
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.