Kuribo64
Views: 12,251,784 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
11-27-20 02:20 PM
Guest:

0 users taking it easy | 1 bot

Main - Relaxland - Code Golf Challenge New reply


Garhoogin
Posted on 05-12-20 11:15 PM Link | #99080
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?
garhoogin.com - I put stuff I make here.


Main - Relaxland - Code Golf Challenge New reply

Page rendered in 0.023 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 196/196, time: 0.019 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.