Second attempt that factors in cheating.
from numpy import median
from random import choice
from pprint import pprint
# Functions
get_mode_coin = lambda x: int(median(x))
def pick(player, wants):
for neighbor in players:
if player != neighbor:
neighbor_purse = players[neighbor]["purse"]
if wants:
if wants in neighbor_purse: # Cheat
players[play]["purse"] = players[play]["purse"] + [wants]
continue
players[play]["purse"] = players[play]["purse"] + [choice(neighbor_purse)]
# Main
players = {"p1" : {"purse": [1,0,1], "wants": False}, ## playing fair
"p2" : {"purse": [0,0,1], "wants": 0}, ## cheating
"p3" : {"purse": [1,1,0], "wants": 1}, ## cheating
"p4" : {"purse": [1,1,0], "wants": 0}, ## cheating
"p5" : {"purse": [0,0,1], "wants": False}} ## playing fair
for play in players: ## Players pick a desired coin from each of their neighbours
pick(play, players[play]["wants"])
print("First picks:")
pprint(players)
for play in players: ## Players collapse their collections to mode
players[play] = [get_mode_coin(players[play]["purse"])]
print("Last modes:", players)
print("Final choice:", get_mode_coin([x for x in players.values()]))
So, my method doesn't work
from numpy import median
from pprint import pprint
players = {"p1" : [1,0,1], ## playing fair
"p2" : [0,0,1], ## cheating
"p3" : [1,1,0], ## cheating
"p4" : [1,1,0], ## cheating
"p5" : [0,0,1]} ## playing fair
print("Initial rolls:")
pprint(players)
get_mode_coin = lambda x: int(median(x))
get_all_mode_coins = lambda x: [get_mode_coin(y) for y in x]
for play in players: ## Players add the mode coin from their neigbours
players[play] = players[play] + get_all_mode_coins(players.values())
print("First picks:")
pprint(players)
for play in players: ## Players collapse their collections to mode
players[play] = [get_mode_coin(players[play])]
print("Last modes:", players)
print("Final choice:", get_mode_coin([x for x in players.values()]))
Which as you can see, is no better than simply picking the median coin from the initial rolls. I thank you for wasting your time.
"Naw boss, I can't make it out there. I've been in too long, a cage is all I know... but Boss, did that lady there just mention something bout crackers?"
I just invested in Anagram Inverters
cat currency is measured in hours sleeping in comfort, so I guess they have that from two sources, secure enough to bank on it
sorry, I did take a low approach there by lumping you with the "let the market sort it out" folks. Apologies.
Still, "clearly told" could mean anything from a cigarette style warning to a single overlooked "parental advisory" style sticker
Exactly, because as we all know - all consumers are all experts in all the products that they use and so deserve no protection from scheming producers.
Get out of here
I eat two massive meals per day, regularly walk stairs but not often, sleep at least until I hear something, go outside begrudgingly, wash my skin with a shower, and brush my beard every other day if I remember
I go to my uncle's house, and ask him "how long have you had <point>?" and if he says, "oh this old thing? I've had it since before you were-" then I ignore it.
if he shrugs, I buy it.
Please don't call regular people "normies", it creates a needless boundary between those who use FOSS and those who haven't yet.
Fuck 'em, I found a new love my .357
And my best little back up, a black Smith and Wesson
I got a Glock 19 with a laser inside
And I'm the one you need to watch for when we go on a ride
I really hope that storage increases faster than our recording tech, to the point that everyone can easily store the sum total of the internet (videos and all) on a single portable drive.
I wanna know what the newsreader he uses is
For me it's my voice. As long as I can utter some kind of shout out, it breaks the spell. Usually something on the lines of "mmmmmroow!"
Plants: not sure what to do
There is a sci-fi short story whose name escapes me of a spaceship using some new FTL drive, but has largely been untested due to an impending doom. The math is said to be solid, however.
Anyway the drive powers up, and the spaceship jumps, and.... all the crew and passengers are left behind, choking in space.
You would like pubs.