How long should it take a mid-level C++ programmer to write a TicTacToe program?

Some jobs require a variety of skills. If I am tested in an interview to write a TicTacToe program with some online website platform, how long should it take?

The program should support just sharing a keyboard. (There will be no AI computer player. There will be no TCP/IP networking for player 2.) The program will display the board with plain text with X's and O's. I'm curious how long it would take to get the program to compile and provide this basic functionality for a mid-level C++ programmer.
If I were interviewing someone, I'd be impressed if they could do it in 30 minutes. I'd be disappointed if it took more than 3 hours.
without AI or graphics, not too long.
given pressure and trying to be extra clean, an hour to hour.5 seems good as he said.
Last edited on
> If I am tested in an interview to write a TicTacToe program with some online website platform, how long should it take?

For a good interviewer, "how was it done" is more important than "how long did it take".

If I were the interviewer:
A good, readable, robust, maintainable solution (one that used idiomatic C++) that took three hours to write would be impressive. A working, but poorly written solution written in half an hour would be far less impressive.
Registered users can post here. Sign in or register to post.