# SimpleMeta

 Author Sean Submission date 2016-02-10 22:04:30.997174 Rating 6883 Matches played 421 Win rate 66.03

Use rpsrunner.py to play unranked matches on your computer.

## Source code:

``````import random

if input == "":
R, P, S = 0, 1, 2
index = {"R": R, "P": P, "S": S}
name = ("R", "P", "S")
beat0 = (P, S, R)
beat1 = (S, R, P)
beat2 = (R, P, S)
beats = [beat0, beat1, beat2]
counts = [[1 for _ in xrange(3)] for _ in xrange(9)]
meta_counts = [1 for _ in xrange(3)]
m = random.randrange(0, 3)
meta = random.randrange(0, 3)
k = None
else:
i = index[input]
j = index[output]
if k is not None:
if j == beat0[i]:
meta_counts[meta] += 2
elif i == beat0[j]:
meta_counts[(meta + 2) % 3] += 2
else:
meta_counts[(meta + 1) % 3] += 2
counts[k][i] += 2
k = 3 * i + j
ns = counts[k]
t = sum(ns)
r = random.randint(0, t)
p = 0
for m, n in enumerate(ns):
p += n
if r <= p:
break
t = sum(meta_counts)
r = random.randint(0, t)
p = 0
for meta, n in enumerate(meta_counts):
p += n
if r <= p:
break
output = name[beats[meta][m]]``````
{"ft_lang_label":"__label__en","ft_lang_prob":0.50748205,"math_prob":0.99990857,"size":992,"snap":"2022-40-2023-06","text_gpt3_token_len":400,"char_repetition_ratio":0.1325911,"word_repetition_ratio":0.082474224,"special_character_ratio":0.4657258,"punctuation_ratio":0.18987341,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9990538,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-05T15:33:30Z\",\"WARC-Record-ID\":\"<urn:uuid:e0d3ed7c-5fd8-4dc3-80af-3ff4299e01f1>\",\"Content-Length\":\"6879\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e725c444-5a9f-41f3-aba3-e3874da37bf1>\",\"WARC-Concurrent-To\":\"<urn:uuid:129475ec-2e37-4a29-b6a1-37ef69a25ea2>\",\"WARC-IP-Address\":\"142.251.163.121\",\"WARC-Target-URI\":\"http://www.rpscontest.com/entry/5751399832879104\",\"WARC-Payload-Digest\":\"sha1:Q4O4V7DCEC47MT2MB6GCGUD43M4U4T7D\",\"WARC-Block-Digest\":\"sha1:YG6775HTKWPUAKJFNT2AT4352GCFJPOV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337631.84_warc_CC-MAIN-20221005140739-20221005170739-00335.warc.gz\"}"}