How to code this thing? im confused
look at the picture how will you code that thing? i was only able to code the
square one.
http://img341.imageshack.us/img341/6749/asteriskga2.jpg
look at the picture how will you code that thing? i was only able to code the
square one.
http://img341.imageshack.us/img341/6749/asteriskga2.jpg
i know exactly how i would code that.
mostly because for the last 3 years people have been asking the
same question, so ive had a while to think about it.
#! /usr/bin/groovy
println '''
************* *
******** *
***********
*******
*******
*******
*******
****** *
************* *
'''
~
thats it yawmark im officially nominating you to make a
99 bottles of beer Groovy entry:
http://99-bottles-of-beer.net/language-groovy-837.html
> thats it yawmark im officially nominating you to make a
> 99 bottles of beer Groovy entry:
It's already been done!
~
> where talkin about java and not perl or whatever
> #usr/bin/
I was talking about Groovy, a standardized language for the Java platform. But, that's okay. Here you go, Mr. Picky-Pants:
class Foo {
public static void main(String[] args) throws Exception {
System.out.println("************* *");
System.out.println("******** *");
System.out.println("***********");
System.out.println("*******");
System.out.println("*******");
System.out.println("*******");
System.out.println("*******");
System.out.println("****** *");
System.out.println("************* *");
}
}
I aim to please.
~
throws Exception {
...just in case it takes exception to your bad artwork.
whats the matter yawmark you cant antialias ascii
art in groovy? ; )
> ...just in case it takes exception to your bad artwork.
Well, that's what I get for reusing scratch classes. Color me a lazy programmer.
~
>> Color me a lazy programmer.
speaking of color, where is it?
how is nemo going to get an A+ on his assignment?
> geeze it seems like a lot more work in java.... I
> gotta look into this groovy thing.
Groovy isnt a real thing. yawmark is just a very disturbed man
mentally who after years of programming snapped completely.
we let him carry on about his fantastical language because it calms
him. there there my friend. there there.
> speaking of color, where is it?
Picky McNicky.
#! /usr/bin/groovy
import static java.awt.Color.*
import static java.awt.Font.*
import static javax.swing.JFrame.*
import java.awt.Font
import groovy.swing.SwingBuilder
pattern = '''
************* *
******** *
***********
*******
*******
*******
*******
****** *
************* *
'''
swing = new SwingBuilder()
gui = swing.frame(defaultCloseOperation:EXIT_ON_CLOSE) {
textArea(text:pattern,
editable:false,
columns:50,
rows:10,
font:Font.decode(MONOSPACED),
background:BLUE)
}
gui.pack()
gui.show()
~
thats right friend we could run that in your magic "groovy" compiler.
<whisper> he must be off his meds again </whisper>
> thats right friend we could run that in your
> magic "groovy" compiler.
> <whisper> he must be off his meds again </whisper>
Phear teh Groove.
~