Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+11 votes

I wanted to add some kind of countdown board then countdown from 3 to 0.

asked in CSC 150 January201920 by (1 point)

5 Answers

+7 votes

you could maybe do some timing with ticks to incorporate a countdown. Thats all I can think of

answered by (1 point)

This is probably right. You could have certain turtles correspond to a certain tick number so that way when it hits a certain tick a turtle will draw a certain number out. That's what I'd do at least.


Thanks. I'll try that.

+5 votes

It may be difficult but you could try to design turtles that resemble these numbers, and then command them to show up one at a time as a countdown.

answered by (1 point)

That's possible too.

+4 votes

another option would be to use the wait command.

answered by (1 point)
+3 votes

I don't know how to show a number in netlogo. But in my opinion, you can create a small colored patch with "tick". For each tick, the opacity of the shape will run from 128 to 0 (0 means time's up)

answered by (1 point)