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 math | |
class Line: | |
def __init__(self, x1, y1, x2, y2): | |
self.x1 = x1 | |
self.y1 = y1 | |
self.x2 = x2 | |
self.y2 = y2 | |
def to_svg(self, style): |
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
// Sample output: | |
// | |
// Win probability for first move with random agents: | |
// 0.115 0.102 0.116 | |
// 0.102 0.131 0.101 | |
// 0.116 0.102 0.116 | |
// Player 1 won 584650 times | |
// Player 2 won 288379 times | |
// 126971 ties | |
// 0.035250 seconds |
NewerOlder