i am trying to print this:

string one = "[----------------]";
                        string two = "[               ]";
                        string three ="[ Go To Jail   ]";
                        string four = "[               ]";
                        string five = "[_______________]";

                        Console.Write("");
                        Console.Write(one);
                        Console.Write(two);
                        Console.Write(three);
                        Console.Write(four);
                        Console.WriteLine(five);

                        Console.Write(i);
                        Console.Write(m);


next to this square:

     string one = "[----------------]";
                        string two = "[               ]";
                        string three ="[ Go To Jail   ]";
                        string four = "[               ]";
                        string five = "[_______________]";

                        Console.Write("");
                        Console.Write(one);
                        Console.Write(two);
                        Console.Write(three);
                        Console.Write(four);
                        Console.WriteLine(five);

                        Console.Write(i);
                        Console.Write(m);

i am trying to create a big monopoly board?

but i find it difficult to glue one square next to another.

Recommended Answers

All 5 Replies

And you think you will do a monopoly (board) in the console? Wouldn`t be better to have the game in windows (windows application)?
and btw, I have to clue what exactly are you trying to achine. please provide us more information.

bye,
Mitja

please tell/draw how you want the printed output to look like? just draw in word and post.. also are you trying to create a monpoly application or do you just want to take a print of board?..bit confused.

i want it to be printed like a chessboard (big squares) with no middle.

in this question i simply want to know how to print two squares next to one another

from wgat i understand your requirement is ...if its a one time job and you want to just take a print why are you writing a program for this? why dont you draw and print it usin MS word or anyother similar appln.. you may get it faster...unless you are keen on writing a program for this. Puzzled!!

Console.Writeline starts a new line and so what you might have to do is

Console.Write(one + one); // concat the var one again since you want it side by side

Console.WriteLine(two + two); // since this will be the next

Console.WriteLine(three + three);

Console.WriteLine(four + four);

I am resuing the same var since it has the same text..

Hope it helps.. but pls tell why not use Word???

cause i have no idea how to incorparate ms word into visual basics 2008

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.