nexiles / wa-tor

Project Wa-Tor
0 stars 0 forks source link

mainloop: Change the code such that the main loop is able to count up and down #12

Closed seletz closed 10 years ago

seletz commented 10 years ago

Problem

The main loop currently can either count up or down, depending on the if in the mainloop function.

That's not good. We want the main loop to work in both cases.

Requirements

The main loop must work with all combinations of start, increment and stop parameters. You may -- for now -- ignore pathological cases.

Deliverable

For the second task: