Problem of the Day
A new programming or logic puzzle every Mon-Fri

Moving Dot

Sorry for taking so long to get today's problem up. Today's goal is to create a program that updates a '.' in the console. When you hit right it moves right. When you hit left it moves left. For bonus points make sure it doesn't wrap in your console (ex: hitting left when the program first loads does nothing).

Permalink: http://problemotd.com/problem/moving-dot/

Comments:

  • David - 9 years ago

    I plan to get back to this, but in case I don't: to anyone digging around old problems, look into ncurses.

    reply permalink

Content curated by @MaxBurstein