| Fizz Buzz Code Golf; A bit of fun competition eh? | |
|---|---|
| Tweet Topic Started: Tuesday, 8. January 2013, 20:49 (275 Views) | |
| Andrew | Tuesday, 8. January 2013, 20:49 Post #1 |
![]()
ぼくたちがすべてはばか。
|
This doesn't really fit into the battles forum so I decided to post it here. So lately I've been obsessed over something called code golf. Like in golf you try to get the lowest score possible. In code golf you try to solve the problem with a twist. The winner is the person whose program takes up the least amount of space in terms of bytes. For example, my entry takes up 59 bytes at the moment and uses 56 characters. The challenge will be to fizz buzz (I love this question). The fizz buzz question is a question usually asked to weed out programmers. Programmers are asked to create a program on a piece of paper that prints out every number from 1-100. For every multiple of 3 print out "Fizz" instead of the number and for every multiple of 5 print out "Buzz" instead of the number. For multiples of 15 print out "FizzBuzz". Prize: This isn't in the graphics battle section but I guess the prize could be 300 tokens? Entry Fee: None just have fun. My Entry By the way...you can use any programming/scripting language you want. Edited by Andrew, Tuesday, 8. January 2013, 20:50.
|
![]() Professional web design/development services. • http://wildandrewlee.com/ | |
Off
Profile |
Quote Top
|
| Sith | Tuesday, 8. January 2013, 21:23 Post #2 |
Fblthp
|
Longer than yours, but thought I'd write something that I could test. ![]() Java:
|
![]() Last.fm | |
Off
Profile |
Quote Top
|
| Andrew | Tuesday, 8. January 2013, 21:47 Post #3 |
![]()
ぼくたちがすべてはばか。
|
Looks great Love Java :3Here are my attempts with it.
|
![]() Professional web design/development services. • http://wildandrewlee.com/ | |
Off
Profile |
Quote Top
|
| RedBldSandman | Thursday, 10. January 2013, 17:58 Post #4 |
![]()
Madness!
|
Pretty fun, could probably do better if I was more familiar with GolfScript but it's a bit tedious Code Golf with any language allowed normally means GolfScript will win from what I've seen
|
| |
Off
Profile |
Quote Top
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Media & Technology · Next Topic » |
| Track Topic · E-mail Topic |
9:01 PM Jul 10
|
Powered by ZetaBoards Premium · Privacy Policy



Multi
Multi



Love Java :3

9:01 PM Jul 10


Outline Live