Binary and Increment
Some numbers fun: not only increasing numbers but also increasing binary.
Start file
3'b000: clk_out = clk_in0; 3'b000: clk_out = clk_in0; 3'b000: clk_out = clk_in0; 3'b000: clk_out = clk_in0; 3'b000: clk_out = clk_in0; 3'b000: clk_out = clk_in0; 3'b000: clk_out = clk_in0; 3'b000: clk_out = clk_in0;
End file
3'b000: clk_out = clk_in1; 3'b001: clk_out = clk_in2; 3'b010: clk_out = clk_in3; 3'b011: clk_out = clk_in4; 3'b100: clk_out = clk_in5; 3'b101: clk_out = clk_in6; 3'b110: clk_out = clk_in7; 3'b111: clk_out = clk_in8;
View Diff
1,8c1,8 < 3'b000: clk_out = clk_in0; < 3'b000: clk_out = clk_in0; < 3'b000: clk_out = clk_in0; < 3'b000: clk_out = clk_in0; < 3'b000: clk_out = clk_in0; < 3'b000: clk_out = clk_in0; < 3'b000: clk_out = clk_in0; < 3'b000: clk_out = clk_in0; --- > 3'b000: clk_out = clk_in1; > 3'b001: clk_out = clk_in2; > 3'b010: clk_out = clk_in3; > 3'b011: clk_out = clk_in4; > 3'b100: clk_out = clk_in5; > 3'b101: clk_out = clk_in6; > 3'b110: clk_out = clk_in7; > 3'b111: clk_out = clk_in8;
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 19 remaining solutions by signing in and submitting your own entry
#20 Oliver Christ / @0liverChrist - Score: 71 - 02/16/15 @ 13:10
lllll<C-V>jjjc1<Esc>jjh<C-V>jjjc1<Esc>kh<C-V>jc1<Esc>jjjj<C-V>jc1<Esc>:sor<CR>f=<C-A>j<C-A><C-A>j3<C-A>j4<C-A>j5<C-A>j6<C-A>j<C-R><Esc>7<C-A>jr8ZZ
0 comments