This file contains 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 collections | |
import functools | |
import itertools | |
import operator | |
""" | |
Constants that will change over the life of the game | |
The current values are based off the following google sheet as of 2018/04/08 19:40 UTC | |
DropMix Card Checklist (Public) | |
https://docs.google.com/spreadsheets/d/13TjEBCW5Wv4xJgGVXGV7PfVNAuc3D07ADE-694NH1Ig/edit?usp=sharing |
This file contains 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
using System.Linq; | |
using System.Collections.Generic; | |
namespace Combinatoric.Enumeration | |
{ | |
public static class CombinatoricEnumeration | |
{ | |
// https://docs.python.org/2/library/itertools.html#itertools.combinations | |
public static IEnumerable<List<T>> Combinations<T>(this IEnumerable<T> items, int r) | |
{ |
This file contains 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
def _get_json_iterator(json): | |
if isinstance(json, dict): | |
return json.keys() | |
elif isinstance(json, list): | |
return range(len(json)) | |
else: | |
raise Exception() | |
def is_json_equal(json_a, json_b): | |
if json_a is json_b: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer