Project

General

Profile

Feature #1247

sleep function

Added by John Abbott about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
CoCoA-5 function: new
Target version:
Start date:
26 Feb 2019
Due date:
% Done:

100%

Estimated time:
1.99 h
Spent time:

Description

Consider adding a "sleep function" to CoCoA-5.

This could be useful in an interactive context (e.g. the "Can't Stop" game).


Related issues

Related to CoCoA-5 - Support #1240: John's visit Feb 2019Closed2019-02-08

History

#1 Updated by John Abbott about 5 years ago

  • Status changed from New to In Progress
  • Assignee set to John Abbott
  • % Done changed from 0 to 40

If we use C++11 then this is a relatively simple task (since C++11 already offers a decent "sleep function").

It's not clear to me how useful this really will be, but it was easy to add. Also I have modified CantStop.cpkg5 so that the game "sleeps" for about 1s after "falling off the mountain" or if there was only one possible move (which then happens automatically); it seems to be a slightly easier to follow the game with these changes.

STILL TO DO update CoCoA-5 manual.

#2 Updated by John Abbott about 5 years ago

#3 Updated by John Abbott about 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 40 to 100
  • Estimated time set to 1.99 h

Checked in. Documentation. Tested. Works on Anna's computer.
Closing.

Also available in: Atom PDF