graphics in command prompt

Nov 24, 2009 at 10:56pm
so my teacher wants ou class to display a poker hand twice and show the hand as actual imgs in command prompt. we cant use SDL of any winAPI programming, just command prompt. how or is this possible?
Nov 24, 2009 at 11:19pm
It isn't, and your teacher is insane.

The whole point of the text terminal is that it is text only. If you want to add images and the like, you must use a graphics library, such as stuff in the Windows API.


You might want to ask if he means that he wants to see ASCII graphics; something like:
1
2
3
4
5
6
7
See -->
  +-----+ +-----+ +-----+ +-----+ +-----+
  |A    | |2    | |9    | |10   | |10   |
  |     | |     | |     | |     | |     |
  |  ♦  | |  ♠  | |  ♥  | |  ♣  | |  ♥  |
  |     | |     | |     | |     | |     |
  |    A| |    2| |    9| |   10| |   10|
  +-----+ +-----+ +-----+ +-----+ +-----+

(There are also block graphic characters that you can use for drawing lines and the like, instead of the + and - and | characters I used above -- but they presume an IBM PC terminal.)

Hope this helps.
Last edited on Nov 24, 2009 at 11:22pm
Nov 24, 2009 at 11:21pm
thats what i have but he wants img's
Nov 24, 2009 at 11:23pm
Then ask him how exactly you are expected to draw an image on the text terminal without using the Windows API. If he can't answer, then he's an idiot.
Topic archived. No new replies allowed.