/--[ What happens when you think in terms of computer programs ]---------------\ | | | | | ------------------------------- | | | | | | | Cracker Barrel | | | | Old Country Store | | | | | | | | Pancakes..............4.95 | | | | Chicken Fried Steak...8.95 | | | | Eggs and Bacon........3.95 | | | | Soup of the Day.......5.95 | | | | | | | ------------------------------| | | | | ^ | | / \ ------------------------ | | / . \ | Game Instructions | | | / 0 0 \ | Leave only one, | | | / 0 0 0 \ | you're a genius! | | | / 0 0 0 0 \ | Leave four or more | | | / 0 0 0 0 0 \ | you're just plain | | | ------------- | "eg-no-ra-moose". | | | ------------------------ | |------------------------------------------------------------------------------- | ___ /\/\/\/| | | / \ Honey, look! Your | | | | / / ** favorite! Chicken Hold on, I'm going (v)(v) 3 | | | \ -/ / Fried Steak! to solve this stupid | | | | \| | puzzle real quick. | --- | | | / \ \ \____/ | | Okay. I'm going | | | | to order. | | | ---[ 20 minutes later ]--------------------------------------------------------- | | | ^ /\/\/\/| | | / \ | | Oh really? We'll see | | / 0 \ (v)(v) 3 who's an "ignoramus" when | | / . . \ | | / I get through with | | / . . . \ | --- | you tonight. | | / . . 0 . \ \____/ | | / 0 . . . 0 \ | | | | ------------- | | | -------------------------------------------------------------------------------- | ___ /\/\/\/| | | / \ How'd your little | | | | / / ** puzzle go sweetie? Eh, I almost got (^)(^) 3 | | | \ -/ / it. I left 2 pegs | | | | \| | due to a careless \ | --- | | | / \ mistake, but if I \____/ | | had time to try | | | | again I'd get it | | perfect. Let's just eat. | | | ---[ later that night ]--------------------------------------------------------- | | | #!/usr/local/bin/ruby | | | | class Peg | | | | def initialize() | | .... /\/\/\/| | | end | | | | (?)(?) 3 Hmm. Should I use a list? | | end | | Or a hash with x,y | | | --- | coordinates for keys? | | class Game \____/ | | | | | | def solve | | ... | | end | | | | end | | | | ... | -------------------------------------------------------------------------------- | | | | | killnine@killnine.com [~]# ./barrel_cracker.rb | | | | 2,0 => 0,0 | | 4,0 => 2,0 /\/\/\/| | | 3,2 => 3,0 | | | | 1,1 => 3,1 (0)(0) 3 That's right bitch. | | 3,0 => 1,0 | | | | 0,0 => 2,0 | \_/ | | | 3,3 => 1,1 \____/ | | 4,1 => 2,1 | | | | 1,1 => 3,1 | | 4,3 => 4,1 | | 2,0 => 4,2 | | 4,1 => 4,3 | | 4,4 => 4,2 | | You left only one peg! You're a genius! | | | | killnine@killnine.com [~]# | \---------------------------------------------[ http://www.killnine.com ]------/
/--[ comics ]------------------------------------------------------------------\ 03.11.2008 - [0027] Celebrity Worship at the SXSW Interactive Conference 01.17.2008 - [0026] People who take themselves too seriously 03.30.2007 - [0025] A summary of Mark Zuckerberg's speech at Startup School 03.07.2007 - [0023] Who needs white strips? 03.07.2007 - [0022] Tiresome conversations 03.06.2007 - [0021] Dreamer 03.02.2007 - [0020] No one ever responds to my personal ads 03.01.2007 - [0019] Stop software abuse 02.28.2007 - [0018] Steve's Debris 02.27.2007 - [0017] Programming Styles Compared 02.26.2007 - [0016] What Would Jay-Z Do? 02.24.2007 - [0015] My brain is a dumb terminal 02.21.2007 - [0014] What if Camus were a Computer Scientist? 02.21.2007 - [0013] Memorization vs. Understanding 02.20.2007 - [0012] An elegant proof of determinism 02.20.2007 - [0011] A tribute to geeks 02.20.2007 - [0010] Getting p0wned by your girlfriend 02.19.2007 - [0009] I don't understand social networking 02.19.2007 - [0008] Don't judge a book by its cover 02.19.2007 - [0007] The day I tried to learn Spring and Hibernate 02.18.2007 - [0006] Sometimes I hate web standards evangelists 02.18.2007 - [0005] Last year I quit my job to become an online poker player 02.18.2007 - [0004] Graffiti in the math building 02.17.2007 - [0003] Every geek's fantasy: Meeting a girl in a wi-fi cafe 02.17.2007 - [0002] What happens when you think in terms of computer programs 02.17.2007 - [0001] It's hard to answer questions honestly at work in your 20's \--[ rss ]-------------------------------[ killnine comics at gmail dot com ]--/