I've been wanting to do something with programming recently to keep myself sharp (since I've been rather lazy lately). So I've come up with some challenges. These aren't very defined unfortunately so some suggestions might be handy.
Challenge #1: A library that can restore and create console sessions must be used! Create an area in console that indicates an array of switches. A switch can be represented by anything, including blank space. However, the area needs to be outlined and made apparent by something other than blank space.
Here's the interesting part. This area of switches is to be completely controlled by some sort of scripting language that can optionally be provided at runtime. Initialization, manipulation, and destruction are all handled by this scripting language. Individual "expressions" should be excepted during the program. Here's an example result and script that gives that result.
Result:
#######
#-++++#
#+++++#
#+++++#
#+++++#
#######
|
Example script:
init 5 4 #Initialize a 5x4 area
set 0 0 off #Set (0,0) to off
quit #The output is erased here and console is restored! Output above was taken before this command.
|
Post your own version! I'll post mine soon.
Also, it doesn't have to be in C++. There is no specification for what scripting language you use or how you create your own pseudo-language (or you could just use XML or something).
EDIT: There will be other challenges later as I think of them.