winner anouncment, in a game

hey guys,

i wrote a code for a tic tac toe game, nothing to beautiful, but i hade some ishues(i managed to solve), but now i am at the "most important" part, anouncing the winner.
so i wanted to do something that is not just writing cout << player << " you won the game"
i have some ideas, but i don't have a clue how to do it.

one is to write in a bigger font : name of the player has won

or something like this, or if u have a sugestion pleas say it, and pleas say how.
How about announcing the winner's name in a flashy, different color?

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/color.html

-Albatross
that would be great :D
thx :)

but problem number one, compiler said
cncurses.h: No such file or directory

and can u do that in c++?
It's a library based on C, but most of the new functions are similar enough to C++ for easy adaptation.

You can't mix standard C++ i/o and ncurses i/o though - one or the other. So if a part of your program is ncurses, the rest has to be as well (but the library is a good one to learn if you are interested).

You first have to install the ncurses library (which usually doesn't come default) for it to work.
If you use Code::Blocks and don't have experience installing new libraries, check out http://www.youtube.com/watch?v=mYnfix8ruAo, nice detailed video on installing it.

You may have to use #include <curses.h> instead of what the tutorial suggests if you use C++.
Last edited on
thx bluezor
i will try that :)
Topic archived. No new replies allowed.