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
#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)) |
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
# tic tac toe game | |
# by shane lindberg | |
#the starting point of available moves | |
$humanmoves = @() | |
$computermoves = @() | |
$whosx = 1 | |
$humanwon = 0 | |
$computerwon = 0 | |
$tie = 0 |
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
#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', |