Tic-Tac-Toe Grid Transformation
Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.
Start file
|x|o|o| | |x|x| |x| |o|
End file
|-----------| |x x| o | o | | x |o o|o o| |x x| o | o | |-----------| | |x x|x x| | | x | x | | |x x|x x| |-----------| |x x| | o | | x | |o o| |x x| | o | |-----------|
View Diff
1,3c1,13 < |x|o|o| < | |x|x| < |x| |o| --- > |-----------| > |x x| o | o | > | x |o o|o o| > |x x| o | o | > |-----------| > | |x x|x x| > | | x | x | > | |x x|x x| > |-----------| > |x x| | o | > | x | |o o| > |x x| | o | > |-----------|
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 81 remaining solutions by signing in and submitting your own entry
#82 윤지환 / @doilche - Score: 352 - 03/18/24 @ 10:21
i<CR><Esc>ljkk<C-\>i<C-\>i<Esc><Esc>i|------------|<CR><BS><Esc>jhhhhi x x<Esc>ll hi l<BS><Esc>lli <Esc>ll jkhi <Esc>lli <CR><BS><Esc><CR>i<CR><CR><Esc>llkk|i| k<BS><Esc>kllli<BS><BS><Esc>j kill<BS><BS><BS><CR><Esc>l jkkli x i<BS>|o o|o o|<CR><Esc>kkyy.uyy<Esc><Esc>jjpkddkjjlkkkklli<Esc>xjjjji| |x x|x <BS>x<BS> c<BS>x|<CR>| | x | | <BS><BS>x |<CR>| |<BS> |x x|x<BS>x x|<CR>|-----------|<CR>|s<BS>x x| | o |<CR>| |<BS>x | |o o <BS>|<CR>|x x| | o |<Esc><Esc>jddddkkkkkki<CR>k<BS><Esc>k|---jjji|-----------|<Esc>jjjjjjjj<CR><CR>a<CR>|-----------|<Esc>:wq<CR>
0 comments