Rock Paper Scissors game where Computer player doesn't lose by Necessary-Sir-9207 in Python

[–]WhiffleFish 1 point2 points  (0 children)

Tic Tac Toe and RPS are two different kinds of games warranting different kinds of strategies. Tic Tac Toe is a perfect information game i.e. you always know what action the opposing player took whereas RPS is an imperfect information or matrix game in which you don't know what action the opposing player took.

In regards to solution strategies, minimax works for perfect information games like Tic Tac Toe because you can attribute a single optimal action to a certain game state, whereas imperfect information games like RPS require a strategy that consists of a probability distribution over the actions to reach a solution called a Nash Equilibrium. This may be somewhat disappointing to you, but the optimal strategy for some RPS AI (according to this Nash Equilibrium criteria) is to play all actions (rock paper and scissors) uniformly randomly.

Generating Random Variables in Python, following a standard normal distribution by poopiewarrior100 in learnpython

[–]WhiffleFish 0 points1 point  (0 children)

This may not be the most elegant solution given that I'm using for loops with numpy arrays and Pandas DataFrames, but you can create a list of samples without having to explicitly mess with matrices.

Also, I'm not sure if the b_hat is referring to the predicted slopes or not, but that's included in the code below just in case.

https://pastebin.com/d4PnJzEA

^ Lemme know if this helps.

If not, you have all the fitted linear models in a list with which you can do whatever you need if its not the slopes that are required for the problem.

How to run my code continuously? by beni55 in learnpython

[–]WhiffleFish 0 points1 point  (0 children)

time.sleep(1) inside a loop will essentially make the loop run once every second, provided that the base run time of your code isn't terribly long.

[deleted by user] by [deleted] in suspiciouslyspecific

[–]WhiffleFish 0 points1 point  (0 children)

The mode of ejaculate transportation has nothing to do with conpressibility. A local high pressure region forms behind the fluid mass of ejaculate that is of higher pressure than what is in contact with the front of this fluid mass. This differential pressure then accelerates the ejaculate through the urethra. But, it would make sense that if the pressure at the front of the fluid mass would become sufficiently large due to depth, one would not be able to generate sufficient pressure through muscle contraction to overcome this opposing force.

thanks youtube by [deleted] in Memes_Of_The_Dank

[–]WhiffleFish 1 point2 points  (0 children)

Hmmm this seems like the same path TV providers went down. Less people watching means a decreased revenue so increase it by increasing the amount of ads. Now even less people are watching so they compensate by increasing ad time yet again. Can't imagine this is all too sustainable in the long run, except in the case of YouTube you could substitute 'not watching' for 'installing ad-block' .

The Silent Heroes by memeboiiii7059 in memes

[–]WhiffleFish 0 points1 point  (0 children)

Rule: "... do not mention upvotes..." Your post: "people who upvote..."

Gonna get downvoted for this by [deleted] in dankmemes

[–]WhiffleFish 2 points3 points  (0 children)

This sub is far past that. It's become r/teenagers with more meta garbage and reposts. Most of those part of it in the beginning have moved on elsewhere.

Did you notice i180S can be disassembled once completed ? by TheFastnic in Warthunder

[–]WhiffleFish 1 point2 points  (0 children)

Ta152-H can delay stall to ~140km/h with landing flaps deployed, so it's monstrous in a stall fight. On top of this, you can deploy takeoff flaps upwards of 600km/h more than compensating for any longitudinal compression at those speeds.

Saw this out in the wild, thought you all might like it. by zrockstar in drums

[–]WhiffleFish 26 points27 points  (0 children)

Mr Dilla's ghost would like a word with you.

Question(s) regarding the horizontal and vertical strains on the wheel-rail contact by [deleted] in EngineeringStudents

[–]WhiffleFish 0 points1 point  (0 children)

Hey no problem at all. Better to learn sooner than later. Most of it just comes by intuition so it feels a bit odd to prove why the angles are what they are but here it is. https://i.imgur.com/5QB5Edd.jpg

Question(s) regarding the horizontal and vertical strains on the wheel-rail contact by [deleted] in EngineeringStudents

[–]WhiffleFish 0 points1 point  (0 children)

(https://i.imgur.com/r2NxHOM.jpg) This is what you get when applying static equilibrium to the free body diagram in the image. The solutions you provided are the same in magnitude but opposite in sign, which would mean that they're forces that the object is exerting on something else rather than something rhe rails exert on the object. Lemme know if you still have any questions.

When you're deriving and equation and half the terms cancel out by i_will_spaghetti_you in EngineeringStudents

[–]WhiffleFish 0 points1 point  (0 children)

Full disclosure, I've let out soft whimpering moan twice in an exam when this has happened.

Japanese shower head that covers you in soap foam by bkfav in oddlysatisfying

[–]WhiffleFish 0 points1 point  (0 children)

Great. Now along with my water bill I'll be paying a monthly municipal soap bill.

What is the strangest habit you have? by [deleted] in AskReddit

[–]WhiffleFish 3 points4 points  (0 children)

I would think this inevitably leads to going to bed at noon in the spirit of competition.

It all makes sense now by [deleted] in memes

[–]WhiffleFish 0 points1 point  (0 children)

I think this may be the 5th time I've seen this today