Views: 19,995,868 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
04-19-24 10:10 PM |
Guest: |
0 users taking it easy | 1 bot |
Main - Relaxland - Code Golf Challenge | Hide post layouts | New reply |
Garhoogin |
| ||
Paratroopa Boots and Cats Level: 24 Posts: 91/144 EXP: 76957 Next: 1168 Since: 11-14-18 From: Somewhere chilly Last post: 422 days ago Last view: 139 days ago |
Challenge
Write a program to print out the graph of r=theta in 79x25 characters. The scale of the graph must be one character cell per x or y coordinate. The graph must be centered in the screen. Your program must: - display the correct output - not crash - not read the desired output from a file Your task is to complete the challenge in as few bytes (UTF-8) as possible. The winner of the challenge will be the program with the least amount of bytes. An example in C (186 bytes): i,x,y;main(){char b[25][80];memset(b,32,2000);for(i=3000;i;i--){float t=i*.02;x=cos(t)*t+40.5;y=12.5-sin(t)*t;if(x>-1&&y>-1&&x<79&&y<25)b[y][x]=35;}for(;i<25;i++){b[i][79]=0;puts(b+i);}} Hey, why not check out my website while you're here? |
Main - Relaxland - Code Golf Challenge | Hide post layouts | New reply |
Page rendered in 0.060 seconds. (2048KB of memory used) MySQL - queries: 28, rows: 194/194, time: 0.029 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |