Saturday, December 15, 2007

Fun Science 'Smart Monkey' part 2

In part 1 we have played a simplified version of Professor Matsuzawa's experiment. Remembering the position of 5 numbers is easy. Let's try with 9 numbers.

1. Search line 30 shown below in the program SmartMonkey.java

30 | int NBR_BOXES = 5;

Replace the value 5 with the value 9.

3. Run the program again. You will now have to remember the position of 9 numbers. It is a lot more challenging and fun that way. Are you still a smart monkey?

Note the monkeys show their superiority when the numbers are shown for less than a second.

4. Search line 18 shown below.

18 | Thread.sleep(5000);

Replace the value 5000 with the value 1000. You are asking the computer to show the numbers for 1000 milliseconds - that's one second - instead of 5000 milliseconds. It's practically impossible for us now to remember the positions right... To enjoy this little game, we suggest you bring back the value 5000.

Have fun!

No comments: