Search
Latest topics
Who is online?
In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests None
Most users ever online was 111 on Tue Jan 11, 2011 3:43 pm
Thinger help :D
+2
Holydrisst
Thorgal
6 posters
Chronos Guild Forum :: Archive :: Social
Page 1 of 1
Thinger help :D
i need to draw a figure like this:
This is what i have so far lol:
and it looked like
- Code:
+-------+
| * |
| /*\ |
| //*\\ |
| \\*// |
| \*/ |
| * |
+-------+
| * |
| /*\ |
| //*\\ |
| \\*// |
| \*/ |
| * |
+-------+
This is what i have so far lol:
- Code:
public class DrawFigure {
public static final int SUB_HEIGHT = 3;
public static void main(String[] args) {
drawLine();
drawTop();
drawBottom();
drawLine();
drawBottom();
drawTop();
drawLine();
}
public static void drawLine() {
System.out.print("+-");
for (int i = 1; i <= (2 * SUB_HEIGHT); i++) {
System.out.print("-");
}
System.out.println("+");
}
public static void drawTop() {
for (int line = 1; line <= SUB_HEIGHT; line++) {
System.out.print("|");
for (int i = 1; i <= (line - 1); i++) {
System.out.print(" ");
}
System.out.print("*");
int spaces = 2 * SUB_HEIGHT - 2 * line;
for (int i = 1; i <= spaces; i++) {
System.out.print(" ");
}
System.out.print("*");
for (int i = 1; i <= (line - 1); i++) {
System.out.print(" ");
}
System.out.println("|");
}
}
public static void drawBottom() {
for (int line = 1; line <= SUB_HEIGHT; line++) {
System.out.print("|");
for (int i = 1; i <= (SUB_HEIGHT - line); i++) {
System.out.print(" ");
}
System.out.print("/");
for (int i = 1; i <= 2 * (line - 1); i++) {
System.out.print(" ");
}
System.out.print("\\");
for (int i = 1; i <= (SUB_HEIGHT - line); i++) {
System.out.print(" ");
}
System.out.println("|");
}
}
}
and it looked like
- Code:
+---------+
|* *|
| * * |
| * * |
| ** |
| /\ |
| / \ |
| / \ |
|/ \|
+---------+
| /\ |
| / \ |
| / \ |
|/ \|
|* *|
| * * |
| * * |
| ** |
+---------+
Thorgal- Posts : 62
Join date : 2008-09-05
Re: Thinger help :D
You should just /uninstall life imo
Holydrisst- Posts : 89
Join date : 2008-09-05
Age : 35
Location : Austin, Texas (San Antonio Home Town)
Re: Thinger help :D
I'm not much of a code monkey (I could be if I tried) but artistically speaking, it looks like you need to make your values either
A.) Turn 90 degrees
B.) Go on the Y Axis (Up and Down) instead of the X (Left and Right)
A.) Turn 90 degrees
B.) Go on the Y Axis (Up and Down) instead of the X (Left and Right)
Droxia- Posts : 474
Join date : 2008-09-05
Re: Thinger help :D
Pray Thorg, pray. (that is saying alot commng from the lips of an apostate; translation: you are seriously fucked )
Ulalume- Posts : 277
Join date : 2008-09-06
Age : 35
Location : Breezing through Ulduar while reasearching the next patch.
Re: Thinger help :D
Why not just use the printl command to print the graphic you want?
Then again i dont know what program your using so their might be restrictions depending on the program.
But I can code in things like c++ c# vb blitzbasic and 3ds max for animation so if you need help i would be one of the logical people nowere near as logical as thinger but i might still be able to help
~RADGOR
Then again i dont know what program your using so their might be restrictions depending on the program.
But I can code in things like c++ c# vb blitzbasic and 3ds max for animation so if you need help i would be one of the logical people nowere near as logical as thinger but i might still be able to help
~RADGOR
radgor- Posts : 6
Join date : 2008-09-27
Similar topics
» So...The rumor about Thinger is...
» Karazhan for Friday September 12th, 2008
» HAPPY BOIDAY THINGER
» THINGER NEEDS HIS EPIC MOUNT!
» Karazhan for Friday September 12th, 2008
» HAPPY BOIDAY THINGER
» THINGER NEEDS HIS EPIC MOUNT!
Chronos Guild Forum :: Archive :: Social
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Mon Aug 24, 2015 11:11 pm by Ilthaelyn
» Resurrecting!
Fri Jul 10, 2015 5:39 pm by Frostine
» story time!
Thu May 07, 2015 1:49 pm by Kyux
» raid selfies?
Tue Apr 28, 2015 1:47 am by Ilthien
» Gear check
Thu Apr 09, 2015 7:52 pm by Ilthien
» Raiding characters
Thu Apr 09, 2015 5:22 am by Ilthien
» On the breeding habits of the Draenei
Thu Apr 09, 2015 5:16 am by Ilthien
» Thien's New choppa!!
Thu Apr 09, 2015 5:14 am by Ilthien
» Raiding times
Sun Mar 15, 2015 2:31 am by PetiteEtoile