1
0
Fork 0
forked from nortti/tea_cah
tea_cah/random_deck.py
2019-05-05 23:39:50 +03:00

18 lines
312 B
Python

import sys
import cardcast_api
def main():
code, _ = cardcast_api.random_code()
info = cardcast_api.info(code)
print('%s: %s by %s (%s black, %s white)' % (
info['code'],
info['name'],
info['author']['username'],
info['call_count'],
info['response_count']
))
if __name__ == '__main__':
main()