Ready to push.

This commit is contained in:
Kevin Lange 2011-11-30 01:23:53 -06:00
parent ffa07d6398
commit 3b7a7a1381
3 changed files with 45 additions and 42 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
nyancat

2
Makefile Normal file
View File

@ -0,0 +1,2 @@
nyancat: nyancat.c
gcc -o nyancat nyancat.c

View File

@ -852,50 +852,50 @@ try_again:
colors['*'] = "\033[48;5;8m"; /* Gray cat face */ colors['*'] = "\033[48;5;8m"; /* Gray cat face */
colors['%'] = "\033[48;5;175m"; /* Pink cheeks */ colors['%'] = "\033[48;5;175m"; /* Pink cheeks */
} else if (!strcmp(response, "2")) { } else if (!strcmp(response, "2")) {
colors[','] = "\033[104m"; /* Blue background */ colors[','] = "\033[104m"; /* Blue background */
colors['.'] = "\033[107m"; /* White stars */ colors['.'] = "\033[107m"; /* White stars */
colors['\''] = "\033[40m"; /* Black border */ colors['\''] = "\033[40m"; /* Black border */
colors['@'] = "\033[47m"; /* Tan poptart */ colors['@'] = "\033[47m"; /* Tan poptart */
colors['$'] = "\033[105m"; /* Pink poptart */ colors['$'] = "\033[105m"; /* Pink poptart */
colors['-'] = "\033[101m"; /* Red poptart */ colors['-'] = "\033[101m"; /* Red poptart */
colors['>'] = "\033[101m"; /* Red rainbow */ colors['>'] = "\033[101m"; /* Red rainbow */
colors['&'] = "\033[43m"; /* Orange rainbow */ colors['&'] = "\033[43m"; /* Orange rainbow */
colors['+'] = "\033[103m"; /* Yellow Rainbow */ colors['+'] = "\033[103m"; /* Yellow Rainbow */
colors['#'] = "\033[102m"; /* Green rainbow */ colors['#'] = "\033[102m"; /* Green rainbow */
colors['='] = "\033[104m"; /* Light blue rainbow */ colors['='] = "\033[104m"; /* Light blue rainbow */
colors[';'] = "\033[44m"; /* Dark blue rainbow */ colors[';'] = "\033[44m"; /* Dark blue rainbow */
colors['*'] = "\033[100m"; /* Gray cat face */ colors['*'] = "\033[100m"; /* Gray cat face */
colors['%'] = "\033[105m"; /* Pink cheeks */ colors['%'] = "\033[105m"; /* Pink cheeks */
} else if (!strcmp(response, "3")) { } else if (!strcmp(response, "3")) {
colors[','] = "\033[25;44m"; /* Blue background */ colors[','] = "\033[25;44m"; /* Blue background */
colors['.'] = "\033[5;47m"; /* White stars */ colors['.'] = "\033[5;47m"; /* White stars */
colors['\''] = "\033[25;40m"; /* Black border */ colors['\''] = "\033[25;40m"; /* Black border */
colors['@'] = "\033[5;47m"; /* Tan poptart */ colors['@'] = "\033[5;47m"; /* Tan poptart */
colors['$'] = "\033[5;45m"; /* Pink poptart */ colors['$'] = "\033[5;45m"; /* Pink poptart */
colors['-'] = "\033[5;41m"; /* Red poptart */ colors['-'] = "\033[5;41m"; /* Red poptart */
colors['>'] = "\033[5;41m"; /* Red rainbow */ colors['>'] = "\033[5;41m"; /* Red rainbow */
colors['&'] = "\033[25;43m"; /* Orange rainbow */ colors['&'] = "\033[25;43m"; /* Orange rainbow */
colors['+'] = "\033[5;43m"; /* Yellow Rainbow */ colors['+'] = "\033[5;43m"; /* Yellow Rainbow */
colors['#'] = "\033[5;42m"; /* Green rainbow */ colors['#'] = "\033[5;42m"; /* Green rainbow */
colors['='] = "\033[25;44m"; /* Light blue rainbow */ colors['='] = "\033[25;44m"; /* Light blue rainbow */
colors[';'] = "\033[5;44m"; /* Dark blue rainbow */ colors[';'] = "\033[5;44m"; /* Dark blue rainbow */
colors['*'] = "\033[5;40m"; /* Gray cat face */ colors['*'] = "\033[5;40m"; /* Gray cat face */
colors['%'] = "\033[5;45m"; /* Pink cheeks */ colors['%'] = "\033[5;45m"; /* Pink cheeks */
} else if (!strcmp(response, "4")) { } else if (!strcmp(response, "4")) {
colors[','] = "\033[44m"; /* Blue background */ colors[','] = "\033[44m"; /* Blue background */
colors['.'] = "\033[47m"; /* White stars */ colors['.'] = "\033[47m"; /* White stars */
colors['\''] = "\033[40m"; /* Black border */ colors['\''] = "\033[40m"; /* Black border */
colors['@'] = "\033[47m"; /* Tan poptart */ colors['@'] = "\033[47m"; /* Tan poptart */
colors['$'] = "\033[45m"; /* Pink poptart */ colors['$'] = "\033[45m"; /* Pink poptart */
colors['-'] = "\033[41m"; /* Red poptart */ colors['-'] = "\033[41m"; /* Red poptart */
colors['>'] = "\033[41m"; /* Red rainbow */ colors['>'] = "\033[41m"; /* Red rainbow */
colors['&'] = "\033[43m"; /* Orange rainbow */ colors['&'] = "\033[43m"; /* Orange rainbow */
colors['+'] = "\033[43m"; /* Yellow Rainbow */ colors['+'] = "\033[43m"; /* Yellow Rainbow */
colors['#'] = "\033[42m"; /* Green rainbow */ colors['#'] = "\033[42m"; /* Green rainbow */
colors['='] = "\033[44m"; /* Light blue rainbow */ colors['='] = "\033[44m"; /* Light blue rainbow */
colors[';'] = "\033[44m"; /* Dark blue rainbow */ colors[';'] = "\033[44m"; /* Dark blue rainbow */
colors['*'] = "\033[40m"; /* Gray cat face */ colors['*'] = "\033[40m"; /* Gray cat face */
colors['%'] = "\033[45m"; /* Pink cheeks */ colors['%'] = "\033[45m"; /* Pink cheeks */
} else { } else {
printf("\033[H\033[2J"); printf("\033[H\033[2J");
printf("I'm sorry, what was that?\n"); printf("I'm sorry, what was that?\n");