Published:2011/8/5 7:21:00 Author:Amy From:SeekIC
By Steve Teal
Operation
When used in combination with shift key SI, column switches 1 to 7 (S2 to S8) have a different function. To access these functions you first have to hold down the shift key, then momentarily press the required column switch. The shift key can then be released again.
Switch Function
1 New game
2 Undo the last move
3 Two players
4 One player / micro
5 Sound off
6 Sound on
7 Kaleidoscope
New game: When this switch is pressed during a game, the board is wiped clear and a new game starts. When you play against the microcontroller you will have the first move.
Undo the last move: Every move can be undone. If you press this switch repeatedly it is even possible to go right back to the beginning of a game. After you have gone back a move, it is always the turn of the human player. This can result in a change of sides during the game. In that case you should press switch 4, which forces the micro to make a move.
Two players: If you press on ’two players’ then two people can play against each other.
One player / micro: This switch lets you play against the AT micro. It can also be used to force the micro to make a move at any time. Pressing it repeatedly therefore makes the microcontroller play against itself.
Sound on/off: These switches turn the sound effects on and off. Each player is represented by different sounds. A short beep is made whenever a switch is pressed.
Kaleidoscope: This was added just for fun, as there was still some room left in the Flash memory and a spare switch was available. LEDs are randomly turned on and off in symmetrical patterns on the display. The colours are limited to red and green; the yellow/orange combination isn’t used. Note that you will lose any game in progress when you select the kaleidoscope function. Furthermore, the power-down timer is not active in this mode, so you have to take care that you don’t drain the batteries. Pressing any of the column switches will exit from the kaleidoscope mode.
Reprinted Url Of This Article: http://www.seekic.com/blog/project_solutions/2011/08/05/Four_in_a_Row__Play_against_each_other_or_against_the_micro_2.html
Print this Page | Comments | Reading(336)
Author:Ecco Reading(30196)
Author:Ecco Reading(3462)
Author:Ecco Reading(3182)
Author:Ecco Reading(3662)
Author:Ecco Reading(5233)
Author:Ecco Reading(3249)
Author:Ecco Reading(3390)
Author:Ecco Reading(3531)
Author:Ecco Reading(3936)
Author:Ecco Reading(3708)
Author:Ecco Reading(3678)
Author:Ecco Reading(3715)
Author:Ecco Reading(6029)
Author:Ecco Reading(3693)
Author:Ecco Reading(4479)