Everyone tosses three coins, and posts it in the chat
If a player tosses three of the same, they have to toss again.
Everyone chooses the mode coin from their neighbour, and adds it to their stack
Each player, with 3+N coins, picks the mode coin in their own collection.
Ideally: the player's own bias, is outweighed by the other player's biases.
The final coin is the mode of all players coins.
spoiler
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.
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()]))
"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'm pretty judgemental of people who use more than one screen. Do you not have hotkeys to jump between bookmarked parts of your buffers? Is momentarily splitting a screen between two programs so difficult? Does Alt-Tab simply not exist in your universe?
Alt-tab was my very last use-case because I literally have bindings to pull up my main programs.
As someone who has gone from tiling(i3), to floating (stump), to tiling again (i3/sway), and finally back to floating (awesome) - I can say floating wins in terms of predictability. You press a button to focus on your desired window and your entire desktop does not need to convulse to accommodate for it.
Floating window managers win on speed and predictability, and I'm wondering now if this is causing the rift in single/multi monitors in this discussion chain.
Ah I see what you mean by tiling. Still, such a setup feels... excessive, no? I can completely understand that you literally never need to pull up anything since it's all just there, but I dunno (I'm reaching here) doesn't your machine get hot from all the displays and forcing all screens to do constant screen updates?
It just seems unneccesary to me (like I said, I'm judgemental on this front). When you have to travel, you can't take all that with you -- so working on a laptop at the airport must be incredibly frustrating if you're used to things just being there, no?
Did you seriously set up awesome as a floating window manager?
Haha, yes, the other layouts are wasted on me. Ideally a dwm desktop would suit me fine, but I enjoy the Lua extensibility.
Well it sounds like your desktop is pretty scalable - no matter how many monitors - so that's pretty good.
And hah yeah, it might be worth investing in a badge that reads "Hi, I'm an IT specialist, this all normal" and pinning it on your shirt before you enter customs
It has always amused me that the tourists to the US that I’ve spoken to are often very excited to see raccoons, and disappointed if they don’t see them before they leave....
My ex's family were pissed when I didn't take her to see Buckingham Palace. There is NOTHING there to see. They make it as boring a possible on purpose. It's on a fucking roundabout for cry sake, you'd see more driving past.
I've found a good number of negative reviews of Bose QC 2 and quite a few good things said about Sony WF-1000XM5 so I'm leaning towards buying them but would love to hear the general recommendation on Lemmy first....
I'd buy vast swathes of land in the countryside, and just make it a homeless refuge. They can erect a tent town if they want, host festivals, do farm work for money. Whatever, they're protected from the police.
I watched my sister and her fiance call each other stupid and mentally deficient, purely as jokes, and it made me feel bad for them... even though they have a great relationship and say shit like that to each other as a joke.
I was once in an open relationship. It was worst experience of my life. She'd mention her old boyfriend like he was still current, we had weird codewords if one of us was interested in someone else, and any talk of future plans was just this large void. Never again.
I voted remain, but I made a big fuss that the leave camp had a valid point about the workers rights in this country, with the expectation that "remain" would be the outcome still. Yes, I'm a shyster.
Yes
He's a racist ego-maniac, but he is funny at times and I like his show about tractors. People are a spectrum.
I did when I was a teen. Now I find them whiney, though I do get nostalgic for that 90s sound sometimes. Ocean Colour Scene, Verve, Manics, etc.
What's a topic you could talk for hours about, and are you capable of summarizing it for a lay person?
(it shows that they're interesting, so when the looks fade with time you still have something to talk about, and it shows they're capable of not just parroting what they hear but internalizing it, and more importantly: coming down to meet you half way, the epitome of compromise through mutual dialogue)
I am, it just feels like to me that, on some level, they are truly saying what they think in the same way that jokes have a small nugget of truth to them. Again, perhaps I'm being too sensitive.
My mum simply doesn't understand temporary joblessness. She doesn't understand that people might need to take some time to figure out who they are and what they want to do, and that jumping from one job to another without any pause is akin to a mental disease.
It sucks also that the world will not let you tread water, financially I mean. I have two months before my contract ends and already I'm sweating at the prospect of a) not having a job lined up, and b) facing my mother without one.
(I should add that in all other respects, she is a sweet lady)
Don't be silly. Elon is going to anonymize the data extraction first, categorise you into one of five badly defined groups, and then beam that shitty group product back into your brain.
Make money for your family, after you're gone! If you get 1 million visitors, you get 1000 dollars a month! Just need to train a bird to swoop by every few minutes, and you're living the life!
he does raise very valid points about reproducible builds, which should be a priority if your product is security
Edit: oh @Wolflink below points out that such builds are available for Android, but iOS has issues stemming from Apple and not Signal. This then begs the question, why is Telegram reproducible on iOS?
My parents raised me to always say "yes sir" and "no ma'am", and I automatically say it to service workers and just about anyone with whom I'm not close that I interact with. I noticed recently that I had misgendered a cashier when saying something like "no thank you, ma'am" based on their appearing AFAB, but on a future visit...
Is it possible for devices on an online group chat to toss a coin without trusting each other and the server?
What open-source software would you like more people to know about?
Negotiator cat ( jlai.lu )
js Monk and Fly ( sh.itjust.works )
Responsive Design Go Brrrr ( sh.itjust.works )
In your country, what "common" animals are tourists most excited to see?
It has always amused me that the tourists to the US that I’ve spoken to are often very excited to see raccoons, and disappointed if they don’t see them before they leave....
Secret ( lemmy.world )
Via Channelate
Why does the aurora borealis appear to be white in the sky but in pictures it has nice coloration?
Help needed choosing a good pair of noise cancelling earphones
I've found a good number of negative reviews of Bose QC 2 and quite a few good things said about Sony WF-1000XM5 so I'm leaning towards buying them but would love to hear the general recommendation on Lemmy first....
What would you ask to a potential partner in a partner compatibility survey?
You're a real artist ( mastodon.social )
Secret Panel HERE ❤️ https://tapas.io/episode/3175205
"I have the sunshine on the other line" ( lemmy.world )
Description:...
What are your best intrusive ads ideas?
If your job was to come up with greater enshittification for society, what would you do?...
Multi-level marketing model ( lemmy.ml )
Telegram founder and CEO alledges signal has backdoors, they don't provide reproduceible builds, etc.
Here's what he said in a post on his telegram channel:...
Is Boeing in big trouble? World's largest aerospace firm faces 10 more whistleblowers after sudden death of two ( www.hindustantimes.com )
A.I. - Tom Gauld for New scientist ( files.mastodon.online )
https://zirk.us/@ChrisMayLA6/112375698960189003
How should I change my polite behavior to be more accommodating?
My parents raised me to always say "yes sir" and "no ma'am", and I automatically say it to service workers and just about anyone with whom I'm not close that I interact with. I noticed recently that I had misgendered a cashier when saying something like "no thank you, ma'am" based on their appearing AFAB, but on a future visit...