question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How many guarantee turns will it have?

See original GitHub issue

On /code/prisonersDilemma.py, line 44 the comment says it will guarantee 50 turns:

The games are a minimum of 50 turns long. The np.log here guarantees that every turn after the 50th has an equal (low) chance of being the final turn.

But on readme.md it says it is guaranteed to be at least 200 turns:

This means each game is guaranteed to be at least 200 turns long.

Which one is correct? I assume the 200, but both information are inconsistent.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
carykhcommented, May 21, 2021

Between 200 and 1765! It’s set up so that you know 200 rounds will happen for sure, but after that, there’s an exponential dropoff (equal probability of ending each round) so you can’t guess when it’s going to end reliably.

Also, sorry for the contradiction from the comment! Forget the number “50”, it’s supposed to say “200”. It should be fixed now!

0reactions
Savethemarshcommented, May 20, 2021

It’s 200, the length of the game is defined as 200-40*log(x), x being a random value from 0 to 1

Isn’t log of zero, undefined?

Yes; see #3

Read more comments on GitHub >

github_iconTop Results From Across the Web

SFH Guaranteed Lender - USDA Rural Development
The loan note guarantee may be issued once the interim construction loan is closed without waiting for the completion of the property.
Read more >
Water and other liquid damage to iPhone or iPod isn't covered ...
iPhone 14* iPhone 14 Plus* iPhone 14 Pro* iPhone 14 Pro Max* iPhone 13 mini, iPhone 13 iPhone 13 Pro iPhone 13 Pro...
Read more >
Guaranteed issue rights - Medicare
In most cases, you have a guaranteed issue right when you have other health coverage that changes in some way, like when you...
Read more >
Check the condition of a device | T-Mobile Support
Mobile devices have a Liquid Damage Indicator (LDI) to show if the device has contacted any liquids. The indicator is white when it's...
Read more >
What Is a Performance Bond and How Does It Work?
A performance bond is issued to one party of a contract as a guarantee against the failure of the other party to meet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found