forked from nortti/tea_cah
18 lines
312 B
Python
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()
|