This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
class Guess: | |
correct_guesses = 0 | |
def next_number(self, number): | |
"""Return the number most likely to be picked by the human. | |
If no candidates are found, return a random number.""" | |
potential_numbers = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
rounds = 0 | |
guesses = 0 | |
numbers = [] | |
print("Welcome to Guess! Each round a player picks a number between 1 and 10. The computer then attempts to guess this number.\n") | |
def success_rate(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CoasterValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |