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 | |
import time | |
# Note: rolling variable is not changed anywhere else -> its not doing anything - remove it | |
rolling = True | |
rounds = 2 | |
round_count = 0 | |
player1_score = 0 | |
player2_score = 0 |
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 | |
import time | |
class DiceGame: | |
ROLL_WAIT_TIME = 3 | |
def __init__(self, rounds): | |
self.rounds = rounds | |
self.player1_score = 0 |
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
const std = @import("std"); | |
const mem = std.mem; | |
const testing = std.testing; | |
const Allocator = mem.Allocator; | |
const ArenaAllocator = std.heap.ArenaAllocator; | |
const SegmentedList = std.SegmentedList; | |
pub const Attribute = struct { | |
name: []const u8, | |
value: []const u8 |