Skip to content

Instantly share code, notes, and snippets.

View raklaptudirm's full-sized avatar
♟️
Writing a Chess Engine

Rak Laptudirm raklaptudirm

♟️
Writing a Chess Engine
View GitHub Profile
@raklaptudirm
raklaptudirm / instructionset.go
Last active May 9, 2022 15:56
Optimized Brainfuck Instruction Set
// value instructions
/* Set Value (offset, amount) */ memory[pointer+offset] = amount
/* Change Value (offset, amount) */ memory[pointer+offset] += amount
// i/o instructions
/* Input Byte (offset) */ memory[pointer+offset] = stdin.ReadByte()
/* Output Byte (offset) */ stdout.Write(string(memory[pointer+offset]))
// looping instructions
/* Start Loop (offset) */ pointer += offset; for memory[pointer] > 0 {
@raklaptudirm
raklaptudirm / Big Guy
Last active June 21, 2022 12:51
My icon in a Prime
777777777777777777777777777777777777777777777777777777777777777777777777777777777
777777777777777777777777777777777777777777777777777777777777777777777777777777777
777777777777777777777777777777777777777777777776777777777777777777777777777777777
777777777777777777777777777777777777777777772977784927777777777777777777777777777
777777777777777777777777777777777777777777747889398877497777777777777777777777777
777777777777777777777769966777777777777777778088888580887927777777777777777777777
777777777777777777776975577377777777777777778888595000488570977777777777777777777
777777777777777777607903808077777777777777720799088880858980973777777777777777777
777777777777777774758808888737777777777777777607807858598870508027777777777777777
777777777777777978509850850747777777777777777773709589888988080574777777777777777