HN user

greenbay20

31 karma
Posts4
Comments14
View on HN
Battleship 4 years ago

Would be interesting to analyze what ship-placement strategy/distribution makes the opponent indifferent in terms of which cell to shot.

Awesome idea, gamifying learning vim seems the way to go.

Minor detail: I would recommend you set up the keyboard focus on the game as soon as the page loads. Saw a comment mentioning that the HJKL keys were not working and the same happened to me...right until I clicked on the command-line box in order to have my keyboard focus it.

I'm incredibly disappointed this was the top comment. Instead of asking whatever it is you want to know in an optimistic way, you just threw a random comment that with decent chance just makes the OP feel worse.

For starters, a really simple question you could have asked that may update your belief of how weird it is they got into YC: "How much money are they making and how much are they growing per week?"

I don't think people should try to price in stock value "growth" into the equation. The fair value today of the stock you're promised on the nth year is just the price of the stock today (for publicly traded companies).

Hero is a chrome extension to manage your tasks and help you focus on one task at a time. Several features are designed to help you focus on exactly one task at a time: 1. You can create a task with a wake-up time from anywhere in Chrome under 10s. 2. Only one task can be "awake" at a given time. 3. The woken task has its own tab and its text is shown every time you open a new tab.

We've had decent growth the past 12 weeks, from ~100 tasks created per week to 1432 this past week. We're looking to expand our pool of 60 users, so if you're interested, schedule an onboarding with us through our website and one of the two co-founders will onboard you on a 15-min Zoom call.

Thanks for reading this far :) -Fernando

Note that the paper claims that no matter how player A chooses the two numbers to write down, you can always guarantee >50% chance in guessing which one is the higher one after only looking at one of the numbers. The reason this seems counter-intuitive is that the only information you're given is one of the numbers. You are not told anything about how the first player picked her numbers. Now, the reason why OP's code does not seem counter-intuitive to most is that it shows a quite different result. The OP assumed a specific distribution (which is a strong assumption, one the paper does not make) and found a strategy that yields > 50%.

> But for any two finite numbers, A and B, the chance that C will fall between them if selected from an infinite range is 1/infinity (or 0).

I think you're assuming we pick C uniformly at random from an infinite range, but this is not possible. In general, the claim is not true: consider picking C from a sample of a standard normal, if A = -B = 2 then with >95% C will lie between A and B.