Skip to content

Instantly share code, notes, and snippets.

View banksean's full-sized avatar

Sean McCullough banksean

View GitHub Profile
// 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},
@banksean
banksean / ints.go
Last active February 14, 2018 16:31
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)

Keybase proof

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: