Skip to content

Instantly share code, notes, and snippets.

#disable that damn caps lock key
#this just creates a harmless reg entry to accomplish this
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout' -Name "scancode map" -value ([byte[]](0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x3a,0x00,0x00,0x00,0x00,0x00))
# tic tac toe game
# by shane lindberg
#the starting point of available moves
$humanmoves = @()
$computermoves = @()
$whosx = 1
$humanwon = 0
$computerwon = 0
$tie = 0
@shanenin
shanenin / gist:f164c483db513b88ce91
Last active August 29, 2015 14:26
introduction to tic tac toe game
#this function converts a value to pixels to create billy
function write-billy{
#these are the pixels(spaces) that make up the ascii image
$billy = ('sb8','nl9','sb6','sl4','sw5','nl4','sb5','sl3','sw9',
'nl3', 'sb4','sl3','sw11','nl3','sb3','sl3','sw3','sr3','sw1',
'sr3','sw3','nl3','sb3','sl3','sw2','sl1','sr1','sl1','sr1','sw1',
'sr1','sl1','sr1','sl1','sw2','nl4','sb2','sl3','sw4','sr3','sw1',
'sr3','sw4','nl3','sb2','sl3','sw1','sr1','sw1','sr1','sw7','sr1',
'sw1','sr1','sw1','nl3','sb1','sl5','sw1','sr1','sw9','sr1','sw1',