I hereby claim:
- I am banksean on github.
- I am banksean (https://keybase.io/banksean) on keybase.
- I have a public key whose fingerprint is 3E99 FD28 9011 FC06 BD23 5F95 8B27 DB6A 1F6D 6497
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
type scoreInt uint64 | |
var ( | |
// If you think I came up with these values by hand... LOL | |
// | |
// Each bit in a value represents the presence or absence | |
// of a score multiplier in the 8x8 upper-left corner of | |
// the board. | |
TWInt = scoreInt(0x8000000000000081) | |
DWInt = scoreInt(0x100000810204000) |
// I was going to use slices, but hey I'm lazy why not let the compiler | |
// verify that I put the right number rows and columns in? | |
type literalBoard [8][8]ScoreType | |
var ( | |
LiteralBoard = literalBoard{ | |
{TW, None, None, DL, None, None, None, TW}, | |
{None, DW, None, None, None, TL, None, None}, | |
{None, None, DW, None, None, None, DL, None}, | |
{DL, None, None, DW, None, None, None, DL}, |
// ScoreAtConditional uses a series of conditional checks to determine what a | |
// particular square's score multiplier is. | |
func ScoreAtConditional(x, y int) ScoreType { | |
// Symmetric adjustments if x or y > 7 to simplify checks below. | |
if x > 7 { | |
x = 14 - x | |
} | |
if y > 7 { | |
y = 14 - y |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-icons/maps-icons.html"> |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<polymer-element name="my-element"> |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> | |
<polymer-element name="my-element"> | |
<template> |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16" /> | |
<title> | |
λ in JavaScript | |
</title> | |
<script type='text/javascript'> | |
Array.prototype.forEach = function(λ) { | |
for (var i = 0; i < this.length; i++) { |