Views: 19,852,728 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
03-28-24 10:45 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: 76529 Next: 1596 Since: 11-14-18 From: Somewhere chilly Last post: 400 days ago Last view: 117 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.021 seconds. (2048KB of memory used) MySQL - queries: 26, rows: 196/196, time: 0.009 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |