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
class Game: | |
GAME_PIECES = { 1: 'X', 2: 'O' } | |
WINNING_SEQUENCES = [ | |
(0, 3, 6), #first column | |
(1, 4, 7), #second column | |
(2, 5, 8), #third column | |
(0, 1, 2), #first row | |
(3, 4, 5), #second row | |
(6, 7, 8), #third row | |
(0, 4, 8), #forward diagonal |
This file has been truncated, but you can view the full file.
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
(function webpackUniversalModuleDefinition(root, factory) { | |
if(typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(require("react"), require("react-dom"), require("react-addons-transition-group"), require("react-addons-create-fragment")); | |
else if(typeof define === 'function' && define.amd) | |
define(["react", "react-dom", "react-addons-transition-group", "react-addons-create-fragment"], factory); | |
else if(typeof exports === 'object') | |
exports["MaterialUI"] = factory(require("react"), require("react-dom"), require("react-addons-transition-group"), require("react-addons-create-fragment")); | |
else | |
root["MaterialUI"] = factory(root["React"], root["ReactDOM"], root["React"]["addons"]["TransitionGroup"], root["React"]["addons"]["createFragment"]); |
This file has been truncated, but you can view the full file.
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
(function webpackUniversalModuleDefinition(root, factory) { | |
if(typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(require("react"), require("react-dom")); | |
else if(typeof define === 'function' && define.amd) | |
define(["react", "react-dom"], factory); | |
else if(typeof exports === 'object') | |
exports["MaterialUI"] = factory(require("react"), require("react-dom")); | |
else | |
root["MaterialUI"] = factory(root["React"], root["ReactDOM"]); |
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 requests | |
r = requests.get('http://pokeapi.co/api/v1/pokemon/1') | |
json = r.json() | |
name = json['name'] #bulbasaur | |
weight = json['weight'] #69 |